MINOR: Fixed subsite test that was assuming that subsite ID#s would start at 1 (false in some cases)

This commit is contained in:
Andreas Piening 2010-01-14 06:29:12 +00:00
parent caf7aea0e9
commit e11ca71be6

View File

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