FIX Fix unit tests for installations in which the base url is set

This commit is contained in:
Raissa North 2018-02-01 14:26:12 +13:00
parent e405dff946
commit 5404dafac1

View File

@ -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);