1
0
Fork 0
mirror of synced 2024-07-01 04:30:59 +12:00

test: fix user token test

This commit is contained in:
loks0n 2024-01-15 11:30:54 +00:00
parent 0a0479f4c5
commit 6bf82c3dc5

View file

@ -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..)
*