From e15afe65c01fe94aa5dd25315706baab0e2be3b7 Mon Sep 17 00:00:00 2001 From: fogelito Date: Thu, 18 Apr 2024 11:33:17 +0300 Subject: [PATCH] Fix error --- tests/e2e/Services/Databases/DatabasesBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Services/Databases/DatabasesBase.php b/tests/e2e/Services/Databases/DatabasesBase.php index 3c630e587..2392d0c54 100644 --- a/tests/e2e/Services/Databases/DatabasesBase.php +++ b/tests/e2e/Services/Databases/DatabasesBase.php @@ -235,7 +235,7 @@ trait DatabasesBase ], $this->getHeaders()) ); - $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals(401, $response['headers']['status-code']); $this->assertEquals('general_access_forbidden', $response['body']['type']); $this->assertEquals('This endpoint is not available for the console project. The Appwrite Console is a reserved project ID and cannot be used with the Appwrite SDKs and APIs. Please check if your project ID is correct.', $response['body']['message']); @@ -247,7 +247,7 @@ trait DatabasesBase // 'x-appwrite-project' => '', empty header ], $this->getHeaders()) ); - $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals(401, $response['headers']['status-code']); $this->assertEquals('No Appwrite project was specified. Please specify your Appwrite Project ID in the "x-appwrite-project" header or when you initialize your Appwrite SDK.', $response['body']['message']); }