MNT Broken builds

This commit is contained in:
Steve Boyd 2023-01-24 15:51:51 +13:00
parent 2fc65d336f
commit da859a967d
2 changed files with 3 additions and 2 deletions

1
_config.php Normal file
View File

@ -0,0 +1 @@
<?php

View File

@ -128,7 +128,7 @@ class IFramePageTest extends SapphireTest
$controller = new IFramePageController($page);
$controller->doInit();
$response = $controller->getResponse();
$this->assertEquals($response->getHeader('Location'), 'https://host.com/iframe/');
$this->assertEquals('https://host.com/iframe', $response->getHeader('Location'));
Config::modify()->set(Director::class, 'alternate_protocol', 'https');
Config::modify()->set(Director::class, 'alternate_base_url', 'https://host.com');
@ -136,7 +136,7 @@ class IFramePageTest extends SapphireTest
$controller = new IFramePageController($page);
$controller->doInit();
$response = $controller->getResponse();
$this->assertEquals($response->getHeader('Location'), 'http://host.com/iframe/');
$this->assertEquals('http://host.com/iframe', $response->getHeader('Location'));
$_SERVER = $origServer;
}