2
0
forked from Wavyzz/dolibarr

Fix travis

This commit is contained in:
ldestailleur
2025-03-24 21:43:38 +01:00
parent 2cb5ec448b
commit bb7ef236c5

View File

@@ -110,7 +110,7 @@ class RestAPIDocumentTest extends AbstractRestAPITest
$object2 = json_decode($result2['content'], true);
//$this->assertNotNull($object2, 'Parsing of json result must not be null');
$this->assertEquals('200', $result2['http_code'], 'Return code must be 200');
$this->assertEquals($result2['curl_error_no'], '');
$this->assertEquals(0, $result2['curl_error_no']);
$this->assertEquals($object2, 'mynewfile.txt', 'Must contains basename of file');
@@ -139,7 +139,7 @@ class RestAPIDocumentTest extends AbstractRestAPITest
$object3 = json_decode($result3['content'], true);
//$this->assertNotNull($object2, 'Parsing of json result must not be null');
$this->assertEquals('200', $result3['http_code'], 'Return code must be 200');
$this->assertEquals($result3['curl_error_no'], '');
$this->assertEquals(0, $result3['curl_error_no']);
$this->assertEquals($object3, 'mynewfile.txt', 'Must contains basename of file');