mirror of
https://github.com/silverstripe/silverstripe-iframe
synced 2024-10-22 11:05:51 +02:00
Merge pull request #66 from creative-commoners/pulls/3/broken-builds
MNT Broken builds
This commit is contained in:
commit
c3dd76cee1
1
_config.php
Normal file
1
_config.php
Normal file
@ -0,0 +1 @@
|
||||
<?php
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user