From 8f9d104ccdf611501fa74c22fbf5e9b26d93d355 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Jan 2024 19:37:06 +0100 Subject: [PATCH] Fix phpunit --- test/phpunit/RestAPIDocumentTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/phpunit/RestAPIDocumentTest.php b/test/phpunit/RestAPIDocumentTest.php index 04be9b63b55..70c280b64c4 100644 --- a/test/phpunit/RestAPIDocumentTest.php +++ b/test/phpunit/RestAPIDocumentTest.php @@ -188,8 +188,8 @@ class RestAPIDocumentTest extends PHPUnit\Framework\TestCase echo __METHOD__.' curl_error_no: '.$result['curl_error_no']."\n"; $object = json_decode($result['content'], true); $this->assertNotNull($object, 'Parsing of json result must not be null'); - $this->assertEquals('401', $result['http_code'], 'Return code is not 401'); - $this->assertEquals('401', (empty($object['error']['code']) ? '' : $object['error']['code']), 'Error code is not 401'); + $this->assertEquals('400', $result['http_code'], 'Test to push a document on a non existing dir does not return 400'); + $this->assertEquals('400', (empty($object['error']['code']) ? '' : $object['error']['code']), 'Test to push a document on a non existing dir does not return 400'); // Send to existent directory