From a5e174e415cde15a584f391d2c4a9ab6312203df Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Thu, 2 Apr 2020 11:28:43 +0100 Subject: [PATCH] FEAT #13676 unit tests --- test/unitTests/app/search/SearchControllerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 test/unitTests/app/search/SearchControllerTest.php diff --git a/test/unitTests/app/search/SearchControllerTest.php b/test/unitTests/app/search/SearchControllerTest.php old mode 100644 new mode 100755 index 68699cc6a91..94e44907b67 --- a/test/unitTests/app/search/SearchControllerTest.php +++ b/test/unitTests/app/search/SearchControllerTest.php @@ -11,9 +11,6 @@ use PHPUnit\Framework\TestCase; class SearchControllerTest extends TestCase { - - private static $id = null; - public function testGet() { $GLOBALS['userId'] = 'bblier'; @@ -135,11 +132,14 @@ class SearchControllerTest extends TestCase $this->assertIsInt($resource->type); $this->assertIsArray($resource->senders); $this->assertNotEmpty($resource->senders); + foreach ($resource->senders as $sender) { + $this->assertNotEmpty($sender); + } $this->assertIsArray($resource->recipients); $this->assertIsInt($resource->attachments); } - $this->assertIsArray($responseBody->allResources); + $this->assertNotEmpty($responseBody->allResources); foreach ($responseBody->allResources as $resource) { $this->assertIsInt($resource); -- GitLab