mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MINOR: Fixed subsite test that was assuming that subsite ID#s would start at 1 (false in some cases)
This commit is contained in:
parent
caf7aea0e9
commit
e11ca71be6
@ -104,11 +104,12 @@ class SubsiteAdminTest extends SapphireTest {
|
||||
$cmsMain = new CMSMain();
|
||||
foreach($cmsMain->Subsites() as $subsite) {
|
||||
$ids[$subsite->ID] = true;
|
||||
}
|
||||
}
|
||||
|
||||
$this->assertArrayHasKey(0, $ids, "Main site accessible");
|
||||
$this->assertArrayHasKey(1, $ids, "Site with no groups inaccesible");
|
||||
$this->assertArrayHasKey(2, $ids, "Subsite1 Template inaccessible");
|
||||
$this->assertArrayHasKey(3, $ids, "Subsite2 Template inaccessible");
|
||||
$this->assertArrayHasKey($this->idFromFixture('Subsite_Template','main'), $ids, "Site with no groups inaccesible");
|
||||
$this->assertArrayHasKey($this->idFromFixture('Subsite_Template','subsite1'), $ids, "Subsite1 Template inaccessible");
|
||||
$this->assertArrayHasKey($this->idFromFixture('Subsite_Template','subsite2'), $ids, "Subsite2 Template inaccessible");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user