Skip to content
Snippets Groups Projects
Verified Commit 66eaf6de authored by Damien's avatar Damien
Browse files

FEAT #9156 unit tests

parent 5373f0ae
No related branches found
No related tags found
No related merge requests found
...@@ -65,16 +65,10 @@ class ResourceListControllerTest extends TestCase ...@@ -65,16 +65,10 @@ class ResourceListControllerTest extends TestCase
$responseBody = json_decode((string)$response->getBody()); $responseBody = json_decode((string)$response->getBody());
$this->assertGreaterThanOrEqual(1, count($responseBody->resources)); $this->assertGreaterThanOrEqual(1, count($responseBody->resources));
$this->assertNotNull($responseBody->resources[0]->creation_date); $this->assertNotNull($responseBody->resources[0]->priorityColor);
$this->assertSame('Demande de documents', $responseBody->resources[0]->doctype_label); $this->assertNotNull($responseBody->resources[0]->statusImage);
$this->assertSame('Pôle Jeunesse et Sport', $responseBody->resources[0]->entity_destination); $this->assertNotNull($responseBody->resources[0]->statusLabel);
$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->assertInternalType('int', $responseBody->resources[0]->res_id); $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); $this->assertSame('2 Breaking News : 12345 Superman is alive - PHP unit', $responseBody->resources[0]->subject);
// GET // GET
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment