Fix travis

This commit is contained in:
ldestailleur
2025-03-24 18:23:31 +01:00
parent 65536f6f70
commit 1726312fc3
10 changed files with 28 additions and 30 deletions

View File

@@ -94,7 +94,7 @@ abstract class AbstractRestAPITest extends CommonClassTest
$result = getURLContent($url, 'GET', '', 1, $addheaders, array('http', 'https'), 2);
print "$method result = ".var_export($result, true)."\n";
print "$method curl_error_no: ".$result['curl_error_no']."\n";
$this->assertEquals('', $result['curl_error_no'], "$test Should not have a curl error");
$this->assertEquals(0, $result['curl_error_no'], "$test Should not have a curl error");
$object = json_decode($result['content'], true); // If success content is just an id, if not an array
$this->assertNotNull($object, "$test Parsing of JSON result must not be null");