mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
test: fix puts that should be posts
This commit is contained in:
@@ -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'],
|
||||
], [
|
||||
|
||||
Reference in New Issue
Block a user