1
0
Fork 0
mirror of synced 2024-07-03 21:50:34 +12:00

test: fix puts that should be posts

This commit is contained in:
loks0n 2024-01-09 18:05:21 +00:00
parent 24ff63bd99
commit 154568d952

View file

@ -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'],
], [