mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix account tests for 0.15
This commit is contained in:
@@ -60,7 +60,7 @@ class GraphQLAccountTest extends Scope
|
||||
|
||||
$this->assertArrayNotHasKey('errors', $session['body']);
|
||||
$this->assertIsArray($session['body']['data']);
|
||||
$this->assertIsArray($session['body']['data']['accountCreateSession']);
|
||||
$this->assertIsArray($session['body']['data']['accountCreateEmailSession']);
|
||||
|
||||
$cookie = $this->client->parseCookie((string)$session['headers']['set-cookie'])['a_session_' . $this->getProject()['$id']];
|
||||
$this->assertNotEmpty($cookie);
|
||||
|
||||
@@ -607,8 +607,8 @@ trait GraphQLBase
|
||||
}
|
||||
}';
|
||||
case self::$CREATE_ACCOUNT_SESSION:
|
||||
return 'mutation createAccountSession($email: String!, $password: String!){
|
||||
accountCreateSession(email: $email, password: $password) {
|
||||
return 'mutation createAccountEmailSession($email: String!, $password: String!){
|
||||
accountCreateEmailSession(email: $email, password: $password) {
|
||||
_id
|
||||
userId
|
||||
expire
|
||||
|
||||
Reference in New Issue
Block a user