Compare commits

...
Author SHA1 Message Date
Bradley Schofield 3b796728f7 Update Tests 2023-11-07 09:36:36 +00:00
Bradley Schofield ecb3d05055 Update unsupported auth error code 2023-11-06 16:17:32 +00:00
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ return [
Exception::USER_AUTH_METHOD_UNSUPPORTED => [
'name' => Exception::USER_AUTH_METHOD_UNSUPPORTED,
'description' => 'The requested authentication method is either disabled or unsupported. Please check the supported authentication methods in the Appwrite console.',
'code' => 501,
'code' => 403,
],
Exception::USER_PHONE_ALREADY_EXISTS => [
'name' => Exception::USER_PHONE_ALREADY_EXISTS,
@@ -975,7 +975,7 @@ class ProjectsConsoleClientTest extends Scope
'name' => $name,
]);
$this->assertEquals($response['headers']['status-code'], 501);
$this->assertEquals($response['headers']['status-code'], 403);
$response = $this->client->call(Client::METHOD_POST, '/teams', array_merge([
'content-type' => 'application/json',
@@ -1095,7 +1095,7 @@ class ProjectsConsoleClientTest extends Scope
'name' => $name,
]);
$this->assertEquals($response['headers']['status-code'], 501);
$this->assertEquals($response['headers']['status-code'], 403);
/**
* Test for FAILURE
@@ -1525,8 +1525,8 @@ class ProjectsConsoleClientTest extends Scope
'userId' => $userId
]);
$this->assertEquals(400, $response['headers']['status-code']);
$this->assertEquals(400, $response['body']['code']);
$this->assertEquals(403, $response['headers']['status-code']);
$this->assertEquals(403, $response['body']['code']);
$this->assertEquals(Exception::USER_PASSWORD_PERSONAL_DATA, $response['body']['type']);
$response = $this->client->call(Client::METHOD_POST, '/account', array_merge([