Skip to content

Commit

Permalink
MNT Use an EmailField so field validation is triggered in behat (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored May 22, 2024
1 parent 6e5e065 commit fcf39f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/multitab-validation/MultiTabPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace SilverStripe\FrameworkTest\Model;

use Page;
use SilverStripe\Forms\EmailField;
use SilverStripe\Forms\RequiredFields;
use SilverStripe\Forms\TextField;

Expand All @@ -29,7 +30,7 @@ public function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Second", TextField::create("SecondTabFirstField"));
$fields->addFieldToTab("Root.Third", TextField::create("ThirdTabFirstField"));
$fields->addFieldToTab("Root.Third", EmailField::create("ThirdTabFirstField"));
$fields->addFieldToTab("Root.Third", TextField::create("ThirdTabSecondField"));
$fields->addFieldToTab("Root.Fourth", TextField::create("FourthTabFirstField"));
return $fields;
Expand Down

0 comments on commit fcf39f1

Please sign in to comment.