Skip to content

Commit

Permalink
[TEST] Fix content-type assertions in test to match case
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Aug 22, 2017
1 parent b8ad96c commit 5b37117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Elasticsearch/Tests/YamlRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ public function checkForWarnings($expectedWarnings) {
}

// Check to make sure we're adding headers
$this->assertArrayHasKey('Content-type', $last['request']['headers'], print_r($last['request']['headers'], true));
$this->assertSame('application/json', $last['request']['headers']['Content-type'][0], print_r($last['request']['headers'], true));
$this->assertArrayHasKey('Content-Type', $last['request']['headers'], print_r($last['request']['headers'], true));
$this->assertSame('application/json', $last['request']['headers']['Content-Type'][0], print_r($last['request']['headers'], true));
$this->assertArrayHasKey('Accept', $last['request']['headers'], print_r($last['request']['headers'], true));
$this->assertSame('application/json', $last['request']['headers']['Accept'][0], print_r($last['request']['headers'], true));

Expand Down

0 comments on commit 5b37117

Please sign in to comment.