Add test ensuring no 500 on bad serach
This commit is contained in:
parent
4491975f78
commit
aa1cf053f7
1 changed files with 12 additions and 0 deletions
|
@ -595,6 +595,18 @@ trait UsersBase
|
||||||
$this->assertCount(1, $response['body']['users']);
|
$this->assertCount(1, $response['body']['users']);
|
||||||
$this->assertEquals($response['body']['users'][0]['$id'], $data['userId']);
|
$this->assertEquals($response['body']['users'][0]['$id'], $data['userId']);
|
||||||
|
|
||||||
|
$response = $this->client->call(Client::METHOD_GET, '/users', array_merge([
|
||||||
|
'content-type' => 'application/json',
|
||||||
|
'x-appwrite-project' => $this->getProject()['$id'],
|
||||||
|
], $this->getHeaders()), [
|
||||||
|
'search' => '>',
|
||||||
|
]);
|
||||||
|
|
||||||
|
$this->assertEquals($response['headers']['status-code'], 200);
|
||||||
|
$this->assertNotEmpty($response['body']);
|
||||||
|
$this->assertEmpty($response['body']['users']);
|
||||||
|
$this->assertCount(0, $response['body']['users']);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test for FAILURE
|
* Test for FAILURE
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue