test: fix user token test
This commit is contained in:
parent
0a0479f4c5
commit
6bf82c3dc5
1 changed files with 1 additions and 9 deletions
|
@ -248,17 +248,9 @@ trait UsersBase
|
|||
$this->assertEquals($data['userId'], $token['body']['userId']);
|
||||
$this->assertNotEmpty($token['body']['secret']);
|
||||
$this->assertNotEmpty($token['body']['expire']);
|
||||
|
||||
/**
|
||||
* Test for FAILURE
|
||||
*/
|
||||
$token = $this->client->call(Client::METHOD_POST, '/users/invalid/tokens', array_merge([
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()));
|
||||
|
||||
$this->assertEquals($token['headers']['status-code'], 404);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Tests all optional parameters of createUser (email, phone, anonymous..)
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue