From a0455c72a34ba15ca5b80631b825cd953e5fb91c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 25 Aug 2023 23:44:55 +0200 Subject: [PATCH] Test phpunit --- test/phpunit/RestAPIUserTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/phpunit/RestAPIUserTest.php b/test/phpunit/RestAPIUserTest.php index dadbc0a8030..72c177b5dec 100644 --- a/test/phpunit/RestAPIUserTest.php +++ b/test/phpunit/RestAPIUserTest.php @@ -237,6 +237,8 @@ class RestAPIUserTest extends PHPUnit\Framework\TestCase $this->assertEquals($result['curl_error_no'], ''); $object = json_decode($result['content'], true); // If success content is just an id, if not an array + print_r('--------------------'); + print_r($object); $this->assertNotNull($object, "Parsing of json result must no be null"); $this->assertNotEquals(500, ((is_scalar($object) || empty($object['error']) || empty($object['error']['code'])) ? 0 : $object['error']['code']), (string) $object['error']['message']); $this->assertGreaterThan(0, $object, 'ID returned is no > 0');