Merge pull request #66 from creative-commoners/pulls/3/broken-builds

MNT Broken builds
This commit is contained in:
Guy Sartorelli 2023-01-25 13:39:14 +13:00 committed by GitHub
commit c3dd76cee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}