From 5404dafac13f989301254e1935a382c7160e951f Mon Sep 17 00:00:00 2001 From: Raissa North Date: Thu, 1 Feb 2018 14:26:12 +1300 Subject: [PATCH] FIX Fix unit tests for installations in which the base url is set --- tests/php/SiteTreeSubsitesTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/SiteTreeSubsitesTest.php b/tests/php/SiteTreeSubsitesTest.php index 926571e..bd3dc7c 100644 --- a/tests/php/SiteTreeSubsitesTest.php +++ b/tests/php/SiteTreeSubsitesTest.php @@ -430,6 +430,9 @@ class SiteTreeSubsitesTest extends BaseSubsiteTest */ 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);