mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Remove adminSearchFields which is never used and causes a test failure
This commit is contained in:
parent
5e1906c9f4
commit
89c6382101
@ -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(
|
||||
|
@ -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 {
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user