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

fix users endpoint test

This commit is contained in:
Damodar Lohani 2022-12-19 08:28:02 +00:00
parent 5b1c54c440
commit b35e5a04be

View file

@ -1060,10 +1060,13 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals(409, $response['headers']['status-code']);
$response = $this->client->call(Client::METHOD_PATCH, '/users/' . $userId . '/password', array_merge($this->getHeaders(), [
$headers = array_merge($this->getHeaders(), [
'x-appwrite-mode' => 'admin',
'content-type' => 'application/json',
'x-appwrite-project' => $id,
]), [
]);
$response = $this->client->call(Client::METHOD_PATCH, '/users/' . $userId . '/password', $headers, [
'password' => $password,
]);