mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
MINOR Using new late static binding create() logic
This commit is contained in:
parent
89db95b044
commit
beba8d3153
@ -105,10 +105,10 @@ class BasicFieldsTestPage extends TestPage {
|
||||
$dateTimeShowCalendar->getTimeField()->setConfig('showdropdown', true);
|
||||
|
||||
$fields->addFieldsToTab('Root.File', array(
|
||||
FormField::create('UploadField', 'File','FileUploadField'),
|
||||
FormField::create('UploadField', 'Image','ImageUploadField'),
|
||||
FormField::create('UploadField', 'HasManyFiles','HasManyFilesUploadField'),
|
||||
FormField::create('UploadField', 'ManyManyFiles','ManyManyFilesUploadField')
|
||||
UploadField::create('File','FileUploadField'),
|
||||
UploadField::create('Image','ImageUploadField'),
|
||||
UploadField::create('HasManyFiles','HasManyFilesUploadField'),
|
||||
UploadField::create('ManyManyFiles','ManyManyFilesUploadField')
|
||||
));
|
||||
|
||||
$tabs = array('Root.Text', 'Root.Numeric', 'Root.Option', 'Root.DateTime', 'Root.File');
|
||||
|
@ -23,9 +23,9 @@ class RelationFieldsTestPage extends TestPage {
|
||||
);
|
||||
|
||||
$fields->addFieldsToTab('Root.Tree', array(
|
||||
Object::create('TreeDropdownField', 'HasOnePage', 'HasOnePage', 'SiteTree'),
|
||||
Object::create('TreeMultiselectField', 'HasManyPages', 'HasManyPages', 'SiteTree'),
|
||||
Object::create('TreeMultiselectField', 'ManyManyPages', 'ManyManyPages (with search)', 'SiteTree')->setShowSearch(true)
|
||||
TreeDropdownField::create('HasOnePage', 'HasOnePage', 'SiteTree'),
|
||||
TreeMultiselectField::create('HasManyPages', 'HasManyPages', 'SiteTree'),
|
||||
TreeMultiselectField::create('ManyManyPages', 'ManyManyPages (with search)', 'SiteTree')->setShowSearch(true)
|
||||
));
|
||||
|
||||
// $fields->addFieldToTab("Root.Tests.ComplexTableField",
|
||||
|
Loading…
Reference in New Issue
Block a user