Skip to content
Snippets Groups Projects
Verified Commit a5e174e4 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #13676 unit tests

parent d438c611
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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