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

FEAT #14213 TIME 0:20 Fix unit tests

parent 78c5d6dc
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,6 @@ class ContactGroupControllerTest extends TestCase ...@@ -77,7 +77,6 @@ class ContactGroupControllerTest extends TestCase
$this->assertSame('Groupe de petition', $responseBody->contactsGroup->description); $this->assertSame('Groupe de petition', $responseBody->contactsGroup->description);
$this->assertSame(false, $responseBody->contactsGroup->public); $this->assertSame(false, $responseBody->contactsGroup->public);
$this->assertSame($user['id'], $responseBody->contactsGroup->owner); $this->assertSame($user['id'], $responseBody->contactsGroup->owner);
$this->assertSame('superadmin', $responseBody->contactsGroup->entity_owner);
$this->assertIsString($responseBody->contactsGroup->labelledOwner); $this->assertIsString($responseBody->contactsGroup->labelledOwner);
$this->assertIsArray($responseBody->contactsGroup->contacts); $this->assertIsArray($responseBody->contactsGroup->contacts);
...@@ -161,7 +160,6 @@ class ContactGroupControllerTest extends TestCase ...@@ -161,7 +160,6 @@ class ContactGroupControllerTest extends TestCase
$this->assertSame('Groupe petition updated', $responseBody->contactsGroup->label); $this->assertSame('Groupe petition updated', $responseBody->contactsGroup->label);
$this->assertSame('Groupe de petition updated', $responseBody->contactsGroup->description); $this->assertSame('Groupe de petition updated', $responseBody->contactsGroup->description);
$this->assertSame(true, $responseBody->contactsGroup->public); $this->assertSame(true, $responseBody->contactsGroup->public);
$this->assertSame('superadmin', $responseBody->contactsGroup->entity_owner);
$this->assertIsString($responseBody->contactsGroup->labelledOwner); $this->assertIsString($responseBody->contactsGroup->labelledOwner);
$this->assertIsArray($responseBody->contactsGroup->contacts); $this->assertIsArray($responseBody->contactsGroup->contacts);
...@@ -308,7 +306,6 @@ class ContactGroupControllerTest extends TestCase ...@@ -308,7 +306,6 @@ class ContactGroupControllerTest extends TestCase
$user = \User\models\UserModel::getByLogin(['select' => ['id'], 'login' => 'superadmin']); $user = \User\models\UserModel::getByLogin(['select' => ['id'], 'login' => 'superadmin']);
$this->assertSame(self::$id, $responseBody->contactsGroup->id); $this->assertSame(self::$id, $responseBody->contactsGroup->id);
$this->assertSame($user['id'], $responseBody->contactsGroup->owner); $this->assertSame($user['id'], $responseBody->contactsGroup->owner);
$this->assertSame('superadmin', $responseBody->contactsGroup->entity_owner);
$this->assertIsString($responseBody->contactsGroup->labelledOwner); $this->assertIsString($responseBody->contactsGroup->labelledOwner);
$this->assertIsArray($responseBody->contactsGroup->contacts); $this->assertIsArray($responseBody->contactsGroup->contacts);
$this->assertEmpty($responseBody->contactsGroup->contacts); $this->assertEmpty($responseBody->contactsGroup->contacts);
......
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