diff --git a/code/BasicFieldsTestPage.php b/code/BasicFieldsTestPage.php
index 26b10d3..ad39974 100644
--- a/code/BasicFieldsTestPage.php
+++ b/code/BasicFieldsTestPage.php
@@ -22,46 +22,45 @@ use SilverStripe\Forms\RequiredFields;
class BasicFieldsTestPage extends TestPage
{
private static $db = array(
- 'Required' => 'Text',
- 'Validated' => 'Text',
- 'Checkbox' => 'Boolean',
- 'Readonly' => 'Varchar',
- 'Textarea' => 'Text',
- 'Text' => 'Varchar',
+ 'AjaxUniqueText' => 'Varchar',
+ 'Autocomplete' => 'Varchar',
+ 'BankNumber' => 'Varchar',
'CalendarDate' => 'Date',
+ 'Checkbox' => 'Boolean',
'CompositeDate' => 'Date',
+ 'ConfirmedPassword' => 'Varchar',
+ 'CreditCard' => 'Varchar',
'Date' => 'Date',
- 'DMYCalendarDate' => 'Date',
- 'DMYDate' => 'Date',
'DateTime' => 'Datetime',
'DateTimeWithCalendar' => 'Datetime',
- 'Time' => 'Time',
-
- 'Money' => 'Money',
- 'Number' => 'Int',
- 'Price' => 'Double',
+ 'DBFile' => 'DBFile',
+ 'DMYCalendarDate' => 'Date',
+ 'DMYDate' => 'Date',
'Email' => 'Varchar',
- 'Password' => 'Varchar',
- 'ConfirmedPassword' => 'Varchar',
+ 'GSTNumber' => 'Varchar',
'HTMLField' => 'HTMLText',
'HTMLOneLine' => 'HTMLVarchar',
- 'UniqueText' => 'Varchar',
- 'AjaxUniqueText' => 'Varchar',
- 'UniqueRestrictedText' => 'Varchar',
- 'BankNumber' => 'Varchar',
- 'PhoneNumber' => 'Varchar',
- 'Autocomplete' => 'Varchar',
- 'CreditCard' => 'Varchar',
- 'GSTNumber' => 'Varchar',
+ 'Money' => 'Money',
+ 'Number' => 'Int',
'OptionSet' => 'Int',
- 'DBFile' => 'DBFile',
+ 'Password' => 'Varchar',
+ 'PhoneNumber' => 'Varchar',
+ 'Price' => 'Double',
+ 'Readonly' => 'Varchar',
+ 'Required' => 'Text',
+ 'Text' => 'Varchar',
+ 'Textarea' => 'Text',
+ 'Time' => 'Time',
+ 'UniqueRestrictedText' => 'Varchar',
+ 'UniqueText' => 'Varchar',
+ 'Validated' => 'Text',
);
private static $has_one = array(
- 'Dropdown' => 'SilverStripe\\FrameworkTest\\Model\\TestCategory',
- 'GroupedDropdown' => 'SilverStripe\\FrameworkTest\\Model\\TestCategory',
- 'File' => 'SilverStripe\\Assets\\File',
'AttachedFile' => 'SilverStripe\\Assets\\File',
+ 'Dropdown' => 'SilverStripe\\FrameworkTest\\Model\\TestCategory',
+ 'File' => 'SilverStripe\\Assets\\File',
+ 'GroupedDropdown' => 'SilverStripe\\FrameworkTest\\Model\\TestCategory',
'Image' => 'SilverStripe\\Assets\\Image',
);
@@ -100,41 +99,41 @@ class BasicFieldsTestPage extends TestPage
$thirdCat = $cats->offsetGet(2);
return array(
- 'Readonly' => 'My value (ä!)',
- 'Textarea' => 'My value (ä!)',
- 'Required' => 'My required value (delete to test)',
- 'Validated' => '1',
- 'Text' => 'My value (ä!)',
- 'Textarea' => 'My value (ä!)',
- 'HTMLField' => 'My value (ä!)',
- 'Email' => 'test@test.com',
- 'Password' => 'My value (ä!)',
- 'Number' => 99,
- 'Price' => 99.99,
- 'MoneyAmount' => 99.99,
- 'MoneyCurrency' => 'EUR',
- 'PhoneNumber' => '021 1235',
- 'CreditCard' => '4000400040004111',
+ 'CalendarDate' => "2002-10-23",
'Checkbox' => 1,
'CheckboxSetID' => $firstCat->ID,
- 'DropdownID' => $firstCat->ID,
- 'GroupedDropdownID' => $firstCat->ID,
- 'MultipleListboxFieldID' => join(',', array($thirdCat->ID, $firstCat->ID)),
- 'OptionSet' => join(',', array($thirdCat->ID, $firstCat->ID)),
+ 'CreditCard' => '4000400040004111',
'Date' => "2002-10-23",
- 'CalendarDate' => "2002-10-23",
- 'DMYDate' => "2002-10-23",
- 'Time' => "23:59",
'DateTime' => "2002-10-23 23:59",
'DateTimeWithCalendar' => "2002-10-23 23:59",
- 'MyFieldGroup1' => 'My value (ä!)',
- 'MyFieldGroup2' => 'My value (ä!)',
- 'MyFieldGroup3' => 'My value (ä!)',
- 'MyFieldGroupCheckbox' => true,
+ 'DMYDate' => "2002-10-23",
+ 'DropdownID' => $firstCat->ID,
+ 'Email' => 'test@test.com',
+ 'GroupedDropdownID' => $firstCat->ID,
+ 'HTMLField' => 'My value (ä!)',
+ 'MoneyAmount' => 99.99,
+ 'MoneyCurrency' => 'EUR',
+ 'MultipleListboxFieldID' => join(',', array($thirdCat->ID, $firstCat->ID)),
'MyCompositeField1' => 'My value (ä!)',
'MyCompositeField2' => 'My value (ä!)',
'MyCompositeField3' => 'My value (ä!)',
'MyCompositeFieldCheckbox' => true,
+ 'MyFieldGroup1' => 'My value (ä!)',
+ 'MyFieldGroup2' => 'My value (ä!)',
+ 'MyFieldGroup3' => 'My value (ä!)',
+ 'MyFieldGroupCheckbox' => true,
+ 'Number' => 99,
+ 'OptionSet' => join(',', array($thirdCat->ID, $firstCat->ID)),
+ 'Password' => 'My value (ä!)',
+ 'PhoneNumber' => '021 1235',
+ 'Price' => 99.99,
+ 'Readonly' => 'My value (ä!)',
+ 'Required' => 'My required value (delete to test)',
+ 'Text' => 'My value (ä!)',
+ 'Textarea' => 'My value (ä!)',
+ 'Textarea' => 'My value (ä!)',
+ 'Time' => "23:59",
+ 'Validated' => '1',
);
}