mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Fix phpunit
This commit is contained in:
@@ -139,8 +139,6 @@ class RestAPIUserTest extends PHPUnit\Framework\TestCase
|
||||
|
||||
$this->api_key = $object['success']['token'];
|
||||
print __METHOD__." api_key: $this->api_key \n";
|
||||
|
||||
print __METHOD__."\n";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -185,12 +183,17 @@ class RestAPIUserTest extends PHPUnit\Framework\TestCase
|
||||
$object=json_decode($result['content'], true);
|
||||
$this->assertNotNull($object, "Parsing of json result must not be null");
|
||||
$this->assertEquals(1, $object['statut']);
|
||||
|
||||
return $object['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* testRestCreateUser
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @depends testRestGetUser
|
||||
* The depends says test is run only if previous is ok
|
||||
*/
|
||||
public function testRestCreateUser()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user