mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
FIX Fix unit tests for installations in which the base url is set
This commit is contained in:
parent
e405dff946
commit
5404dafac1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user