diff --git a/tests/e2e/Services/GraphQL/Base.php b/tests/e2e/Services/GraphQL/Base.php index 22460fc3b9..07c1d55aec 100644 --- a/tests/e2e/Services/GraphQL/Base.php +++ b/tests/e2e/Services/GraphQL/Base.php @@ -847,8 +847,8 @@ trait Base } }'; case self::$UPDATE_USER_EMAIL_VERIFICATION: - return 'mutation updateUserVerification($userId: String!, $emailVerification: Boolean!){ - usersUpdateVerification(userId: $userId, emailVerification: $emailVerification) { + return 'mutation updateUserEmailVerification($userId: String!, $emailVerification: Boolean!){ + usersUpdateEmailVerification(userId: $userId, emailVerification: $emailVerification) { name email } diff --git a/tests/e2e/Services/GraphQL/UsersTest.php b/tests/e2e/Services/GraphQL/UsersTest.php index f50b58bf25..9bd503df0f 100644 --- a/tests/e2e/Services/GraphQL/UsersTest.php +++ b/tests/e2e/Services/GraphQL/UsersTest.php @@ -218,7 +218,7 @@ class UsersTest extends Scope $this->assertIsArray($user['body']['data']); $this->assertArrayNotHasKey('errors', $user['body']); - $this->assertIsArray($user['body']['data']['usersUpdateVerification']); + $this->assertIsArray($user['body']['data']['usersUpdateEmailVerification']); } public function testUpdateUserPhoneVerification() diff --git a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php index 9e4ab09caf..0272bd2d68 100644 --- a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php +++ b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php @@ -130,7 +130,6 @@ class ProjectsConsoleClientTest extends Scope $this->assertEquals(409, $response['headers']['status-code']); $this->assertEquals(409, $response['body']['code']); $this->assertEquals(Exception::PROJECT_ALREADY_EXISTS, $response['body']['type']); - $this->assertEquals('Project with the requested ID already exists.', $response['body']['message']); } /** @group projectsCRUD */ diff --git a/tests/e2e/Services/Storage/StorageBase.php b/tests/e2e/Services/Storage/StorageBase.php index 16ab930af5..5463740761 100644 --- a/tests/e2e/Services/Storage/StorageBase.php +++ b/tests/e2e/Services/Storage/StorageBase.php @@ -2,6 +2,7 @@ namespace Tests\E2E\Services\Storage; +use Appwrite\Extend\Exception; use CURLFile; use Tests\E2E\Client; use Utopia\Database\DateTime; @@ -262,7 +263,7 @@ trait StorageBase ]); $this->assertEquals(400, $res['headers']['status-code']); - $this->assertEquals('The value for x-appwrite-id header is invalid. Please check the value of the x-appwrite-id header is valid id and not unique().', $res['body']['message']); + $this->assertEquals(Exception::STORAGE_INVALID_APPWRITE_ID, $res['body']['type']); return ['bucketId' => $bucketId, 'fileId' => $file['body']['$id'], 'largeFileId' => $largeFile['body']['$id'], 'largeBucketId' => $bucket2['body']['$id']]; }