Skip to content

Commit

Permalink
FIX Fix unit tests for installations in which the base url is set
Browse files Browse the repository at this point in the history
  • Loading branch information
raissanorth committed Feb 1, 2018
1 parent e405dff commit 5404daf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/php/SiteTreeSubsitesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ public function provideAlternateAbsoluteLink()
*/
public function testAlternateAbsoluteLink($pageFixtureName, $action, $expectedAbsoluteLink)
{
// Setting a control value, in case base url is set for the installation under test
Config::modify()->set(Director::class, 'alternate_base_url', 'http://localhost/');

/** @var Page $page */
$page = $this->objFromFixture(Page::class, $pageFixtureName);

Expand Down

0 comments on commit 5404daf

Please sign in to comment.