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