test: fix puts that should be posts
This commit is contained in:
parent
24ff63bd99
commit
154568d952
|
@ -2192,7 +2192,7 @@ class AccountCustomClientTest extends Scope
|
|||
/**
|
||||
* Test for SUCCESS
|
||||
*/
|
||||
$response = $this->client->call(Client::METHOD_PUT, '/account/sessions/token', [
|
||||
$response = $this->client->call(Client::METHOD_POST, '/account/sessions/token', [
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], [
|
||||
|
@ -2210,7 +2210,7 @@ class AccountCustomClientTest extends Scope
|
|||
* Test for FAILURE
|
||||
*/
|
||||
// Invalid userId
|
||||
$response = $this->client->call(Client::METHOD_PUT, '/account/sessions/token', [
|
||||
$response = $this->client->call(Client::METHOD_POST, '/account/sessions/token', [
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], [
|
||||
|
@ -2221,7 +2221,7 @@ class AccountCustomClientTest extends Scope
|
|||
$this->assertEquals(401, $response['headers']['status-code']);
|
||||
|
||||
// Invalid secret
|
||||
$response = $this->client->call(Client::METHOD_PUT, '/account/sessions/token', [
|
||||
$response = $this->client->call(Client::METHOD_POST, '/account/sessions/token', [
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], [
|
||||
|
|
Loading…
Reference in a new issue