From 12a91af6f3b2a847c7e2fee9a68d2647a12d000e Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Thu, 17 Dec 2020 14:19:17 +0100
Subject: [PATCH] FIX #15570 TIME 0:10 unit test

---
 test/unitTests/app/resource/ResControllerTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unitTests/app/resource/ResControllerTest.php b/test/unitTests/app/resource/ResControllerTest.php
index c4b2af4ae34..42d60c3e019 100755
--- a/test/unitTests/app/resource/ResControllerTest.php
+++ b/test/unitTests/app/resource/ResControllerTest.php
@@ -421,7 +421,7 @@ class ResControllerTest extends TestCase
         $response     = $resController->create($fullRequest, new \Slim\Http\Response());
         $this->assertSame(400, $response->getStatusCode());
         $responseBody = json_decode((string)$response->getBody(), true);
-        $this->assertSame('Body documentDate is not a valid date', $responseBody['errors']);
+        $this->assertSame('Body documentDate cannot be a date in the future', $responseBody['errors']);
 
         $body = [
             'doctype'     => 102,
-- 
GitLab