mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix travis
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user