diff --git a/src/Bundle/ChillMainBundle/Tests/Controller/NewsItemApiControllerTest.php b/src/Bundle/ChillMainBundle/Tests/Controller/NewsItemApiControllerTest.php index 1a00e45de..f8f7aafea 100644 --- a/src/Bundle/ChillMainBundle/Tests/Controller/NewsItemApiControllerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Controller/NewsItemApiControllerTest.php @@ -30,7 +30,7 @@ class NewsItemApiControllerTest extends WebTestCase $client->request('GET', '/api/1.0/main/news/current.json'); $this->assertResponseIsSuccessful('Testing whether the GET request to the news item Api endpoint was successful'); - $responseContent = json_decode($client->getResponse()->getContent(), true); + $responseContent = json_decode($client->getResponse()->getContent(), true, 512, JSON_THROW_ON_ERROR); if (!empty($responseContent['data'][0])) { $this->assertArrayHasKey('title', $responseContent['data'][0]);