1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Fix message checks

This commit is contained in:
Jake Barnby 2023-08-23 16:42:16 -04:00
parent 7636fe23ac
commit 0f36245f78
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
4 changed files with 5 additions and 5 deletions

View file

@ -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
}

View file

@ -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()

View file

@ -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 */

View file

@ -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']];
}