From 1d797dacc6f2a749f9f40ea03d5d775e4f2422d2 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 1 Jul 2022 11:37:46 +1200 Subject: [PATCH] Fix account tests for 0.15 --- tests/e2e/Services/GraphQL/GraphQLAccountTest.php | 2 +- tests/e2e/Services/GraphQL/GraphQLBase.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/Services/GraphQL/GraphQLAccountTest.php b/tests/e2e/Services/GraphQL/GraphQLAccountTest.php index 00c28ef97b..52117614da 100644 --- a/tests/e2e/Services/GraphQL/GraphQLAccountTest.php +++ b/tests/e2e/Services/GraphQL/GraphQLAccountTest.php @@ -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); diff --git a/tests/e2e/Services/GraphQL/GraphQLBase.php b/tests/e2e/Services/GraphQL/GraphQLBase.php index 09b44c08ab..4b35192dcf 100644 --- a/tests/e2e/Services/GraphQL/GraphQLBase.php +++ b/tests/e2e/Services/GraphQL/GraphQLBase.php @@ -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