diff --git a/tests/application/modules/admin/controllers/FormationControllerTest.php b/tests/application/modules/admin/controllers/FormationControllerTest.php index 8da1df9eda1f3a4c88c17e11cdc3b3d5fe5a1e76..f64906926a6612bfdf372ed52d7d14ce7150a5f9 100644 --- a/tests/application/modules/admin/controllers/FormationControllerTest.php +++ b/tests/application/modules/admin/controllers/FormationControllerTest.php @@ -1731,18 +1731,17 @@ class FormationControllerGetActionTest extends Admin_AbstractControllerTestCase{ /** @test */ public function shouldDisplayJsonScytheTraining() { - $expected_json_categrories = [['id'=>2, - 'label' => 'scythe chap 2'], - ['id' => 1, - 'label' => 'scythe chap 1']]; - $expected_json= ['id'=>'formations', - 'label' => 'Formations', - 'categories' => $expected_json_categrories, - 'items' => [], - 'options' => []]; - - $this->assertJsonStringEqualsJsonString(json_encode($expected_json), - $this->_response->getBody(),$this->_response->getBody()); + $expected_json= json_encode(['id'=>'formations', + 'label' => 'Formations', + 'categories' => [['id'=>2, + 'label' => 'scythe chap 2'], + ['id' => 1, + 'label' => 'scythe chap 1']], + 'items' => [], + 'options' => []]); + + $this->assertJsonStringEqualsJsonString($expected_json, + $this->_response->getBody()); } } ?> \ No newline at end of file