1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

add test to login after converting

This commit is contained in:
Torsten Dittmann 2021-02-16 15:20:15 +01:00
parent c9b46d93dc
commit b559f8068e

View file

@ -333,6 +333,17 @@ class AccountCustomClientTest extends Scope
$this->assertIsNumeric($response['body']['registration']);
$this->assertEquals($response['body']['email'], $email);
$response = $this->client->call(Client::METHOD_POST, '/account/sessions', array_merge([
'origin' => 'http://localhost',
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
]), [
'email' => $email,
'password' => $password,
]);
$this->assertEquals($response['headers']['status-code'], 201);
return [];
}
}