diff --git a/test/libraries/core/PMA_headerLocation_test.php b/test/libraries/core/PMA_headerLocation_test.php index f33308c988e2..0bbc0b822e4b 100644 --- a/test/libraries/core/PMA_headerLocation_test.php +++ b/test/libraries/core/PMA_headerLocation_test.php @@ -65,14 +65,11 @@ public function testSendHeaderLocationWithoutSidWithIis() $testUri = 'https://example.com/test.php'; - PMA_sendHeaderLocation($testUri); // sets $GLOBALS['header'] $this->mockResponse('Location: ' . $testUri); + PMA_sendHeaderLocation($testUri); // sets $GLOBALS['header'] - //reset $GLOBALS['header'] for the next assertion - unset($GLOBALS['header']); - - PMA_sendHeaderLocation($testUri, true); // sets $GLOBALS['header'] $this->mockResponse('Refresh: 0; ' . $testUri); + PMA_sendHeaderLocation($testUri, true); // sets $GLOBALS['header'] } /** @@ -84,8 +81,8 @@ public function testSendHeaderLocationWithoutSidWithoutIis() { $testUri = 'https://example.com/test.php'; - PMA_sendHeaderLocation($testUri); // sets $GLOBALS['header'] $this->mockResponse('Location: ' . $testUri); + PMA_sendHeaderLocation($testUri); // sets $GLOBALS['header'] } /**