mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: hardcoded ID replaced with actual value
This commit is contained in:
parent
09b1b06bd2
commit
cdc419a2f2
@ -81,7 +81,7 @@ class SiteTreeSubsitesTest extends SapphireTest {
|
|||||||
$this->assertEquals($importantpage->canEdit(), $link->canEdit());
|
$this->assertEquals($importantpage->canEdit(), $link->canEdit());
|
||||||
$this->assertEquals($importantpage->canDelete(), $link->canDelete());
|
$this->assertEquals($importantpage->canDelete(), $link->canDelete());
|
||||||
$link->AbsoluteLink(true);
|
$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() {
|
function testPageWithVirtualPagesGetsTable() {
|
||||||
|
Loading…
Reference in New Issue
Block a user