mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Removed support for TableListField test cases
This commit is contained in:
parent
a8538669ac
commit
ae618798b3
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
class LegacyTableFieldsTestPage extends TestPage {
|
||||
|
||||
function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
|
||||
$tf = new TableListField('CompaniesTF', 'Company');
|
||||
$tf->setShowPagination(true);
|
||||
$ctf = new ComplexTableField($this, 'CompaniesCTF', 'Company');
|
||||
|
||||
$fields->addFieldsToTab('Root.Fields', array(
|
||||
$tf,
|
||||
$ctf
|
||||
));
|
||||
|
||||
return $fields;
|
||||
}
|
||||
}
|
||||
|
||||
class LegacyTableFieldsTestPage_Controller extends TestPage_Controller {
|
||||
|
||||
}
|
@ -32,10 +32,6 @@ class RelationFieldsTestPage extends TestPage {
|
||||
TreeMultiselectField::create('ManyManyPages', 'ManyManyPages (with search)', 'SiteTree')->setShowSearch(true)
|
||||
));
|
||||
|
||||
// $fields->addFieldToTab("Root.Tests.ComplexTableField",
|
||||
// new CheckboxSetField("CheckboxSet", "CheckboxSetField", TestCategory::map()));
|
||||
// $fields->addFieldToTab("Root.Tests.CheckboxSet", new CheckboxSetField("CheckboxSet", "CheckboxSetField", TestCategory::map()));
|
||||
|
||||
return $fields;
|
||||
}
|
||||
}
|
||||
|
@ -1,25 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* A data type that is related 1-many to RelationFieldsTestPage, for testing purposes
|
||||
*/
|
||||
class TestCTFItem extends DataObject {
|
||||
static $db = array(
|
||||
"Title" => "Varchar",
|
||||
"Author" => "Varchar",
|
||||
"Description" => "Text",
|
||||
);
|
||||
static $has_one = array(
|
||||
"Parent" => "RelationFieldsTestPage",
|
||||
);
|
||||
|
||||
/**
|
||||
* Returns a dropdown map of all objects of this class
|
||||
*/
|
||||
static function map() {
|
||||
return DataObject::get('TestCategory')->toDropdownMap();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user