Fix message checks
This commit is contained in:
parent
7636fe23ac
commit
0f36245f78
4 changed files with 5 additions and 5 deletions
|
@ -847,8 +847,8 @@ trait Base
|
||||||
}
|
}
|
||||||
}';
|
}';
|
||||||
case self::$UPDATE_USER_EMAIL_VERIFICATION:
|
case self::$UPDATE_USER_EMAIL_VERIFICATION:
|
||||||
return 'mutation updateUserVerification($userId: String!, $emailVerification: Boolean!){
|
return 'mutation updateUserEmailVerification($userId: String!, $emailVerification: Boolean!){
|
||||||
usersUpdateVerification(userId: $userId, emailVerification: $emailVerification) {
|
usersUpdateEmailVerification(userId: $userId, emailVerification: $emailVerification) {
|
||||||
name
|
name
|
||||||
email
|
email
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,7 +218,7 @@ class UsersTest extends Scope
|
||||||
|
|
||||||
$this->assertIsArray($user['body']['data']);
|
$this->assertIsArray($user['body']['data']);
|
||||||
$this->assertArrayNotHasKey('errors', $user['body']);
|
$this->assertArrayNotHasKey('errors', $user['body']);
|
||||||
$this->assertIsArray($user['body']['data']['usersUpdateVerification']);
|
$this->assertIsArray($user['body']['data']['usersUpdateEmailVerification']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testUpdateUserPhoneVerification()
|
public function testUpdateUserPhoneVerification()
|
||||||
|
|
|
@ -130,7 +130,6 @@ class ProjectsConsoleClientTest extends Scope
|
||||||
$this->assertEquals(409, $response['headers']['status-code']);
|
$this->assertEquals(409, $response['headers']['status-code']);
|
||||||
$this->assertEquals(409, $response['body']['code']);
|
$this->assertEquals(409, $response['body']['code']);
|
||||||
$this->assertEquals(Exception::PROJECT_ALREADY_EXISTS, $response['body']['type']);
|
$this->assertEquals(Exception::PROJECT_ALREADY_EXISTS, $response['body']['type']);
|
||||||
$this->assertEquals('Project with the requested ID already exists.', $response['body']['message']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @group projectsCRUD */
|
/** @group projectsCRUD */
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace Tests\E2E\Services\Storage;
|
namespace Tests\E2E\Services\Storage;
|
||||||
|
|
||||||
|
use Appwrite\Extend\Exception;
|
||||||
use CURLFile;
|
use CURLFile;
|
||||||
use Tests\E2E\Client;
|
use Tests\E2E\Client;
|
||||||
use Utopia\Database\DateTime;
|
use Utopia\Database\DateTime;
|
||||||
|
@ -262,7 +263,7 @@ trait StorageBase
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals(400, $res['headers']['status-code']);
|
$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']];
|
return ['bucketId' => $bucketId, 'fileId' => $file['body']['$id'], 'largeFileId' => $largeFile['body']['$id'], 'largeBucketId' => $bucket2['body']['$id']];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue