From c24d8fb85cc64d1d3bb3490203646e4e5f4fe9cc Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Thu, 30 Apr 2020 14:52:04 +0100
Subject: [PATCH] FIX #11895 0:15 Test E2E + fix TU

---
 .gitlab-ci.yml                                            | 2 +-
 .../app/notification/DiffusionTypesControllerTest.php     | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fa7146bc6ee..53c5e13fec7 100755
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,6 @@
 services:
   - name: postgres:10.1
-    command: ["postgres", "-c", "datestyle='iso,dmy'"]
+    command: ["-c", "datestyle=\'iso,dmy\'"]
   - httpd:latest
 
 variables:
diff --git a/test/unitTests/app/notification/DiffusionTypesControllerTest.php b/test/unitTests/app/notification/DiffusionTypesControllerTest.php
index d1d801a82a3..15143e8c003 100755
--- a/test/unitTests/app/notification/DiffusionTypesControllerTest.php
+++ b/test/unitTests/app/notification/DiffusionTypesControllerTest.php
@@ -184,7 +184,7 @@ class DiffusionTypesControllerTest extends TestCase
             $args['event']['table_name'] = 'notes';
             $args['event']['record_id'] = 1;
             $response = $diffusionTypesController->getItemsToNotify($args);
-            $this->assertEmpty($response);
+            $this->assertIsInt($response);
 
             $args['event']['table_name'] = 'listinstance';
             $args['event']['user_id'] = 19;
@@ -235,7 +235,7 @@ class DiffusionTypesControllerTest extends TestCase
             $args['event']['table_name'] = 'notes';
             $args['event']['record_id'] = 1;
             $response = $diffusionTypesController->getItemsToNotify($args);
-            $this->assertEmpty($response);
+            $this->assertIsInt($response);
 
             $args['event']['table_name'] = 'listinstance';
             $args['event']['user_id'] = 19;
@@ -294,7 +294,7 @@ class DiffusionTypesControllerTest extends TestCase
             $args['event']['table_name'] = 'notes';
             $args['event']['record_id'] = 1;
             $response = $diffusionTypesController->getItemsToNotify($args);
-            $this->assertEmpty($response);
+            $this->assertIsInt($response);
 
             $args['event']['table_name'] = 'listinstance';
             $args['event']['user_id'] = 19;
@@ -353,7 +353,7 @@ class DiffusionTypesControllerTest extends TestCase
             $args['event']['table_name'] = 'notes';
             $args['event']['record_id'] = 1;
             $response = $diffusionTypesController->getItemsToNotify($args);
-            $this->assertEmpty($response);
+            $this->assertIsInt($response);
 
             $args['event']['table_name'] = 'listinstance';
             $args['event']['user_id'] = 19;
-- 
GitLab