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

update e2e test for anonymous user verification

This commit is contained in:
vaibhavagarwal220 2023-07-07 00:20:13 +05:30
parent fecde6bdba
commit 4e24b7eb42

View file

@ -494,6 +494,18 @@ class AccountCustomClientTest extends Scope
'password' => $password,
]);
$this->assertEquals($response['headers']['status-code'], 201);
$response = $this->client->call(Client::METHOD_POST, '/account/verification', array_merge([
'origin' => 'http://localhost',
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session,
]), [
'url' => 'http://localhost'
]);
$this->assertEquals($response['headers']['status-code'], 201);
return [];