Fix tests

This commit is contained in:
Dan Wallis
2021-04-14 22:48:03 +01:00
parent 04116f5017
commit 26c4ca5eb7
+2 -8
View File
@@ -133,18 +133,12 @@ class SystemFacadeTest extends TestCase
public function test_it_delegates_sending_an_http_response_code_to_the_native_implementation()
{
self::$runtime->shouldReceive('headers_sent')->once()->withNoArgs();
self::$runtime->shouldReceive('header_remove')->once()->with('location');
self::$runtime->shouldReceive('http_response_code')->once()->with(230);
$this->facade->setHttpResponseCode(230);
}
public function test_it_removes_any_location_header_already_sent()
{
self::$runtime->shouldReceive('headers_sent')->once()->withNoArgs();
self::$runtime->shouldReceive('header_remove')->once()->with('location');
$this->facade->setHttpResponseCode(204);
}
}
function ob_start()