Removed support for TableListField test cases

This commit is contained in:
Ingo Schommer 2012-11-27 12:10:58 +01:00
parent a8538669ac
commit ae618798b3
3 changed files with 0 additions and 52 deletions

View File

@ -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 {
}

View File

@ -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;
}
}

View File

@ -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();
}
}
?>