mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Sort items (no additions)
This commit is contained in:
parent
c733111c6d
commit
8a2f501805
@ -22,46 +22,45 @@ use SilverStripe\Forms\RequiredFields;
|
|||||||
class BasicFieldsTestPage extends TestPage
|
class BasicFieldsTestPage extends TestPage
|
||||||
{
|
{
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Required' => 'Text',
|
'AjaxUniqueText' => 'Varchar',
|
||||||
'Validated' => 'Text',
|
'Autocomplete' => 'Varchar',
|
||||||
'Checkbox' => 'Boolean',
|
'BankNumber' => 'Varchar',
|
||||||
'Readonly' => 'Varchar',
|
|
||||||
'Textarea' => 'Text',
|
|
||||||
'Text' => 'Varchar',
|
|
||||||
'CalendarDate' => 'Date',
|
'CalendarDate' => 'Date',
|
||||||
|
'Checkbox' => 'Boolean',
|
||||||
'CompositeDate' => 'Date',
|
'CompositeDate' => 'Date',
|
||||||
|
'ConfirmedPassword' => 'Varchar',
|
||||||
|
'CreditCard' => 'Varchar',
|
||||||
'Date' => 'Date',
|
'Date' => 'Date',
|
||||||
'DMYCalendarDate' => 'Date',
|
|
||||||
'DMYDate' => 'Date',
|
|
||||||
'DateTime' => 'Datetime',
|
'DateTime' => 'Datetime',
|
||||||
'DateTimeWithCalendar' => 'Datetime',
|
'DateTimeWithCalendar' => 'Datetime',
|
||||||
'Time' => 'Time',
|
'DBFile' => 'DBFile',
|
||||||
|
'DMYCalendarDate' => 'Date',
|
||||||
'Money' => 'Money',
|
'DMYDate' => 'Date',
|
||||||
'Number' => 'Int',
|
|
||||||
'Price' => 'Double',
|
|
||||||
'Email' => 'Varchar',
|
'Email' => 'Varchar',
|
||||||
'Password' => 'Varchar',
|
'GSTNumber' => 'Varchar',
|
||||||
'ConfirmedPassword' => 'Varchar',
|
|
||||||
'HTMLField' => 'HTMLText',
|
'HTMLField' => 'HTMLText',
|
||||||
'HTMLOneLine' => 'HTMLVarchar',
|
'HTMLOneLine' => 'HTMLVarchar',
|
||||||
'UniqueText' => 'Varchar',
|
'Money' => 'Money',
|
||||||
'AjaxUniqueText' => 'Varchar',
|
'Number' => 'Int',
|
||||||
'UniqueRestrictedText' => 'Varchar',
|
|
||||||
'BankNumber' => 'Varchar',
|
|
||||||
'PhoneNumber' => 'Varchar',
|
|
||||||
'Autocomplete' => 'Varchar',
|
|
||||||
'CreditCard' => 'Varchar',
|
|
||||||
'GSTNumber' => 'Varchar',
|
|
||||||
'OptionSet' => '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(
|
private static $has_one = array(
|
||||||
'Dropdown' => 'SilverStripe\\FrameworkTest\\Model\\TestCategory',
|
|
||||||
'GroupedDropdown' => 'SilverStripe\\FrameworkTest\\Model\\TestCategory',
|
|
||||||
'File' => 'SilverStripe\\Assets\\File',
|
|
||||||
'AttachedFile' => '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',
|
'Image' => 'SilverStripe\\Assets\\Image',
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -100,41 +99,41 @@ class BasicFieldsTestPage extends TestPage
|
|||||||
$thirdCat = $cats->offsetGet(2);
|
$thirdCat = $cats->offsetGet(2);
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'Readonly' => 'My value (ä!)',
|
'CalendarDate' => "2002-10-23",
|
||||||
'Textarea' => 'My value (ä!)',
|
|
||||||
'Required' => 'My required value (delete to test)',
|
|
||||||
'Validated' => '1',
|
|
||||||
'Text' => 'My value (ä!)',
|
|
||||||
'Textarea' => 'My value (ä!)',
|
|
||||||
'HTMLField' => 'My <strong>value</strong> (ä!)',
|
|
||||||
'Email' => 'test@test.com',
|
|
||||||
'Password' => 'My value (ä!)',
|
|
||||||
'Number' => 99,
|
|
||||||
'Price' => 99.99,
|
|
||||||
'MoneyAmount' => 99.99,
|
|
||||||
'MoneyCurrency' => 'EUR',
|
|
||||||
'PhoneNumber' => '021 1235',
|
|
||||||
'CreditCard' => '4000400040004111',
|
|
||||||
'Checkbox' => 1,
|
'Checkbox' => 1,
|
||||||
'CheckboxSetID' => $firstCat->ID,
|
'CheckboxSetID' => $firstCat->ID,
|
||||||
'DropdownID' => $firstCat->ID,
|
'CreditCard' => '4000400040004111',
|
||||||
'GroupedDropdownID' => $firstCat->ID,
|
|
||||||
'MultipleListboxFieldID' => join(',', array($thirdCat->ID, $firstCat->ID)),
|
|
||||||
'OptionSet' => join(',', array($thirdCat->ID, $firstCat->ID)),
|
|
||||||
'Date' => "2002-10-23",
|
'Date' => "2002-10-23",
|
||||||
'CalendarDate' => "2002-10-23",
|
|
||||||
'DMYDate' => "2002-10-23",
|
|
||||||
'Time' => "23:59",
|
|
||||||
'DateTime' => "2002-10-23 23:59",
|
'DateTime' => "2002-10-23 23:59",
|
||||||
'DateTimeWithCalendar' => "2002-10-23 23:59",
|
'DateTimeWithCalendar' => "2002-10-23 23:59",
|
||||||
'MyFieldGroup1' => 'My value (ä!)',
|
'DMYDate' => "2002-10-23",
|
||||||
'MyFieldGroup2' => 'My value (ä!)',
|
'DropdownID' => $firstCat->ID,
|
||||||
'MyFieldGroup3' => 'My value (ä!)',
|
'Email' => 'test@test.com',
|
||||||
'MyFieldGroupCheckbox' => true,
|
'GroupedDropdownID' => $firstCat->ID,
|
||||||
|
'HTMLField' => 'My <strong>value</strong> (ä!)',
|
||||||
|
'MoneyAmount' => 99.99,
|
||||||
|
'MoneyCurrency' => 'EUR',
|
||||||
|
'MultipleListboxFieldID' => join(',', array($thirdCat->ID, $firstCat->ID)),
|
||||||
'MyCompositeField1' => 'My value (ä!)',
|
'MyCompositeField1' => 'My value (ä!)',
|
||||||
'MyCompositeField2' => 'My value (ä!)',
|
'MyCompositeField2' => 'My value (ä!)',
|
||||||
'MyCompositeField3' => 'My value (ä!)',
|
'MyCompositeField3' => 'My value (ä!)',
|
||||||
'MyCompositeFieldCheckbox' => true,
|
'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',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user