Skip to content

Commit

Permalink
MNT Broken builds
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 24, 2023
1 parent 2fc65d3 commit da859a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions _config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
4 changes: 2 additions & 2 deletions tests/IFramePageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ public function testForceProtocol()
$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');
$page->ForceProtocol = 'http://';
$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;
}
Expand Down

0 comments on commit da859a9

Please sign in to comment.