Fix phpunit

This commit is contained in:
Laurent Destailleur
2023-08-25 13:58:27 +02:00
parent 519318953d
commit bcd3401e47
4 changed files with 48 additions and 62 deletions

View File

@@ -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()
{