From 66eaf6de5bad4ee3b4a1d056e2027a9699e509a6 Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Tue, 12 Feb 2019 11:45:09 +0100 Subject: [PATCH] FEAT #9156 unit tests --- .../app/resource/ResourceListControllerTest.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/test/unitTests/app/resource/ResourceListControllerTest.php b/test/unitTests/app/resource/ResourceListControllerTest.php index 1de39d4f00e..39adf5cb223 100644 --- a/test/unitTests/app/resource/ResourceListControllerTest.php +++ b/test/unitTests/app/resource/ResourceListControllerTest.php @@ -65,16 +65,10 @@ class ResourceListControllerTest extends TestCase $responseBody = json_decode((string)$response->getBody()); $this->assertGreaterThanOrEqual(1, count($responseBody->resources)); - $this->assertNotNull($responseBody->resources[0]->creation_date); - $this->assertSame('Demande de documents', $responseBody->resources[0]->doctype_label); - $this->assertSame('Pôle Jeunesse et Sport', $responseBody->resources[0]->entity_destination); - $this->assertNotNull($responseBody->resources[0]->priority_color); - $this->assertNotNull($responseBody->resources[0]->priority_label); - $this->assertNotNull($responseBody->resources[0]->status_icon); - $this->assertNotNull($responseBody->resources[0]->status_label); + $this->assertNotNull($responseBody->resources[0]->priorityColor); + $this->assertNotNull($responseBody->resources[0]->statusImage); + $this->assertNotNull($responseBody->resources[0]->statusLabel); $this->assertInternalType('int', $responseBody->resources[0]->res_id); - $this->assertSame('incoming', $responseBody->resources[0]->category_id); - $this->assertSame('COU', $responseBody->resources[0]->status_id); $this->assertSame('2 Breaking News : 12345 Superman is alive - PHP unit', $responseBody->resources[0]->subject); // GET -- GitLab