diff --git a/tests/e2e/Services/Account/AccountCustomClientTest.php b/tests/e2e/Services/Account/AccountCustomClientTest.php index c605a64d31..972514b92e 100644 --- a/tests/e2e/Services/Account/AccountCustomClientTest.php +++ b/tests/e2e/Services/Account/AccountCustomClientTest.php @@ -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'], ], [