BUGFIX: hardcoded ID replaced with actual value

This commit is contained in:
Geoff Munn 2010-05-06 03:27:44 +00:00
parent 09b1b06bd2
commit cdc419a2f2

View File

@ -81,7 +81,7 @@ class SiteTreeSubsitesTest extends SapphireTest {
$this->assertEquals($importantpage->canEdit(), $link->canEdit());
$this->assertEquals($importantpage->canDelete(), $link->canDelete());
$link->AbsoluteLink(true);
$this->assertEquals($link->RelatedPageAdminLink(), '<a href="admin/show/5" class="cmsEditlink">Contact Us</a>');
$this->assertEquals($link->RelatedPageAdminLink(), '<a href="admin/show/' . $contact->ID . '" class="cmsEditlink">Contact Us</a>');
}
function testPageWithVirtualPagesGetsTable() {