From de07f7f44fc2e39aca57323c65959de4faf0c8eb Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Fri, 24 Jan 2020 00:12:19 +0100 Subject: [PATCH] FEAT #12073 TIME 0:10 Fix history tu --- test/unitTests/app/history/HistoryControllerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unitTests/app/history/HistoryControllerTest.php b/test/unitTests/app/history/HistoryControllerTest.php index 8aab2331324..7758b714aa0 100755 --- a/test/unitTests/app/history/HistoryControllerTest.php +++ b/test/unitTests/app/history/HistoryControllerTest.php @@ -62,11 +62,11 @@ class HistoryControllerTest extends TestCase $fullRequest = $request->withQueryParams($aArgs); $response = $batchHistory->get($fullRequest, new \Slim\Http\Response()); - $responseBody = json_decode((string)$response->getBody()); + $responseBody = json_decode((string)$response->getBody(), true); - $this->assertInternalType('array', $responseBody->batchHistories); - $this->assertInternalType('bool', $responseBody->limitExceeded); - $this->assertNotNull($responseBody->batchHistories); + $this->assertInternalType('array', $responseBody['history']); + $this->assertInternalType('integer', $responseBody['count']); + $this->assertNotNull($responseBody['history']); } public function testRealDelete() -- GitLab