1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00

test to set password history limit above 20

This commit is contained in:
Damodar Lohani 2022-12-21 06:42:27 +00:00
parent 1388f58b59
commit 772481451c

View file

@ -1000,6 +1000,19 @@ class ProjectsConsoleClientTest extends Scope
{
$id = $data['projectId'] ?? '';
/**
* Test for Failure
*/
$response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $id . '/auth/password-history', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'limit' => 25,
]);
$this->assertEquals(400, $response['headers']['status-code']);
/**
* Test for Success
*/