Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
We were faking out the wrong header name..
  • Loading branch information
markstory committed Jul 6, 2016
1 parent 67ad9be commit 3ff051f
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -773,8 +773,7 @@ public function testRequestContentTypes()
$this->assertEquals('json', $this->RequestHandler->requestedWith());

$this->request->env('REQUEST_METHOD', 'POST');
$this->request->env('CONTENT_TYPE', '');
$this->request->env('HTTP_CONTENT_TYPE', 'application/json');
$this->request->env('CONTENT_TYPE', 'application/json');

$result = $this->RequestHandler->requestedWith(['json', 'xml']);
$this->assertEquals('json', $result);
Expand Down

0 comments on commit 3ff051f

Please sign in to comment.