Fix account tests for 0.15

This commit is contained in:
Jake Barnby
2022-07-01 11:37:46 +12:00
parent 7c8cc39d07
commit 1d797dacc6
2 changed files with 3 additions and 3 deletions
@@ -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);
+2 -2
View File
@@ -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