Skip to content

Commit

Permalink
Fix laravel 5.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Jan 29, 2017
1 parent a40c553 commit a98840e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"require-dev": {
"codeclimate/php-test-reporter": "^0.4",
"orchestra/testbench": "^3.3",
"orchestra/testbench": "^3.4",
"phpunit/phpunit": "^5.7"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions tests/MiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ protected function getEnvironmentSetUp($app)

public function test_middleware()
{
$headers = $this->get('/')->response->headers->all();
$response = $this->get('/');

$this->assertArrayHasKey('x-frame-options', $headers);
$this->assertArrayHasKey('content-security-policy', $headers);
$response->assertHeader('x-frame-options');
$response->assertHeader('content-security-policy');
}
}

0 comments on commit a98840e

Please sign in to comment.