mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Fixed deep-nested-URLs test to work on sites in subfolders
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@96836 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0c13c7a091
commit
2996cb39e3
@ -76,12 +76,15 @@ class ContentControllerTest extends FunctionalTest {
|
||||
$parentID = $page->ID;
|
||||
|
||||
$page = new ContentControllerTest_Page();
|
||||
$page->ParentID = $parentID;
|
||||
$page->Title = "Page Level $i";
|
||||
$page->URLSegment = "level-$i";
|
||||
$page->write();
|
||||
|
||||
$relativeLink = Director::makeRelative($page->Link());
|
||||
$this->assertEquals($page->Title, $this->get($relativeLink)->getBody());
|
||||
}
|
||||
|
||||
$this->assertEquals($page->Title, $this->get($page->Link())->getBody());
|
||||
|
||||
SiteTree::disable_nested_urls();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user