fix users endpoint test
This commit is contained in:
parent
5b1c54c440
commit
b35e5a04be
1 changed files with 5 additions and 2 deletions
|
@ -1060,10 +1060,13 @@ class ProjectsConsoleClientTest extends Scope
|
||||||
|
|
||||||
$this->assertEquals(409, $response['headers']['status-code']);
|
$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',
|
'content-type' => 'application/json',
|
||||||
'x-appwrite-project' => $id,
|
'x-appwrite-project' => $id,
|
||||||
]), [
|
]);
|
||||||
|
|
||||||
|
$response = $this->client->call(Client::METHOD_PATCH, '/users/' . $userId . '/password', $headers, [
|
||||||
'password' => $password,
|
'password' => $password,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue