Skip to content

Commit

Permalink
prevent exceptions caused by missing formats
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jan 31, 2020
1 parent 1c8d9e0 commit 98c1c32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/Functional/ConfigurationTest.php
Expand Up @@ -40,9 +40,10 @@ public function testToolbar()
'/_profiler/empty/search/results?limit=10',
[],
[],
['HTTP_Accept' => 'application/json']
['HTTP_Accept' => 'application/xml']
);

$this->assertSame(200, $client->getResponse()->getStatusCode());
$this->assertSame('text/html; charset=UTF-8', $client->getResponse()->headers->get('Content-Type'));
}
}

0 comments on commit 98c1c32

Please sign in to comment.