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

FEAT #11690 TIME 0:05 Fix unit tests

parent 22bc1c2a
No related branches found
No related tags found
No related merge requests found
......@@ -133,8 +133,8 @@ class NoteControllerTest extends TestCase
$responseBody = json_decode((string)$response->getBody());
$this->assertInternalType('string', $responseBody->note_text);
$this->assertSame("Test modification d'une note par php unit", $responseBody->note_text);
$this->assertInternalType('string', $responseBody->value);
$this->assertSame("Test modification d'une note par php unit", $responseBody->value);
$this->assertInternalType('array', $responseBody->entities);
$response = $noteController->getById($request, new \Slim\Http\Response(), ['id' => 999999999, 'resId' => self::$resId]);
......@@ -165,8 +165,8 @@ class NoteControllerTest extends TestCase
foreach ($responseBody as $value) {
$this->assertInternalType('int', $value->id);
$this->assertInternalType('int', $value->identifier);
$this->assertInternalType('string', $value->note_text);
$this->assertNotEmpty($value->note_text);
$this->assertInternalType('string', $value->value);
$this->assertNotEmpty($value->value);
$this->assertInternalType('int', $value->user_id);
$this->assertInternalType('string', $value->firstname);
$this->assertNotEmpty($value->firstname);
......
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