Remove adminSearchFields which is never used and causes a test failure

This commit is contained in:
Sean Harvey 2012-10-12 12:54:18 +13:00
parent 5e1906c9f4
commit 89c6382101
2 changed files with 1 additions and 13 deletions

View File

@ -578,15 +578,6 @@ JS;
// CMS ADMINISTRATION HELPERS
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Return the FieldList that will build the search form in the CMS
*/
function adminSearchFields() {
return new FieldList(
new TextField('Name', 'Sub-site name')
);
}
function providePermissions() {
return array(
'SUBSITE_ASSETS_CREATE_SUBSITE' => array(

View File

@ -100,9 +100,8 @@ class SubsiteAdminTest extends SapphireTest {
$cmsMain = new CMSMain();
foreach($cmsMain->Subsites() as $subsite) {
$ids[$subsite->ID] = true;
}
}
$this->assertTrue(Subsite::adminSearchFields() instanceof FieldList);
$this->assertArrayHasKey(0, $ids, "Main site accessible");
$this->assertArrayHasKey($this->idFromFixture('Subsite_Template','main'), $ids, "Site with no groups inaccesible");
$this->assertArrayHasKey($this->idFromFixture('Subsite_Template','subsite1'), $ids, "Subsite1 Template inaccessible");
@ -111,5 +110,3 @@ class SubsiteAdminTest extends SapphireTest {
}
?>