mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
MNT Use an EmailField so field validation is triggered in behat (#180)
This commit is contained in:
parent
6e5e0650b6
commit
fcf39f1cf9
@ -3,6 +3,7 @@
|
|||||||
namespace SilverStripe\FrameworkTest\Model;
|
namespace SilverStripe\FrameworkTest\Model;
|
||||||
|
|
||||||
use Page;
|
use Page;
|
||||||
|
use SilverStripe\Forms\EmailField;
|
||||||
use SilverStripe\Forms\RequiredFields;
|
use SilverStripe\Forms\RequiredFields;
|
||||||
use SilverStripe\Forms\TextField;
|
use SilverStripe\Forms\TextField;
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ class MultiTabPage extends Page
|
|||||||
{
|
{
|
||||||
$fields = parent::getCMSFields();
|
$fields = parent::getCMSFields();
|
||||||
$fields->addFieldToTab("Root.Second", TextField::create("SecondTabFirstField"));
|
$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.Third", TextField::create("ThirdTabSecondField"));
|
||||||
$fields->addFieldToTab("Root.Fourth", TextField::create("FourthTabFirstField"));
|
$fields->addFieldToTab("Root.Fourth", TextField::create("FourthTabFirstField"));
|
||||||
return $fields;
|
return $fields;
|
||||||
|
Loading…
Reference in New Issue
Block a user