Merge remote-tracking branch 'origin/1.5.x' into fix-template-enum-seperation
This commit is contained in:
commit
1b36d3533a
3 changed files with 4 additions and 4 deletions
|
@ -63,7 +63,7 @@ class AccountTest extends Scope
|
||||||
|
|
||||||
$this->assertArrayNotHasKey('errors', $session['body']);
|
$this->assertArrayNotHasKey('errors', $session['body']);
|
||||||
$this->assertIsArray($session['body']['data']);
|
$this->assertIsArray($session['body']['data']);
|
||||||
$this->assertIsArray($session['body']['data']['accountCreateEmailSession']);
|
$this->assertIsArray($session['body']['data']['accountCreateEmailPasswordSession']);
|
||||||
|
|
||||||
$cookie = $session['cookies']['a_session_' . $this->getProject()['$id']];
|
$cookie = $session['cookies']['a_session_' . $this->getProject()['$id']];
|
||||||
$this->assertNotEmpty($cookie);
|
$this->assertNotEmpty($cookie);
|
||||||
|
|
|
@ -1186,7 +1186,7 @@ trait Base
|
||||||
}';
|
}';
|
||||||
case self::$CREATE_ACCOUNT_SESSION:
|
case self::$CREATE_ACCOUNT_SESSION:
|
||||||
return 'mutation createAccountEmailSession($email: String!, $password: String!){
|
return 'mutation createAccountEmailSession($email: String!, $password: String!){
|
||||||
accountCreateEmailSession(email: $email, password: $password) {
|
accountCreateEmailPasswordSession(email: $email, password: $password) {
|
||||||
_id
|
_id
|
||||||
userId
|
userId
|
||||||
expire
|
expire
|
||||||
|
|
|
@ -287,7 +287,7 @@ class BatchTest extends Scope
|
||||||
accountCreate(userId: $userId, email: $email, password: $password, name: $name) {
|
accountCreate(userId: $userId, email: $email, password: $password, name: $name) {
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
accountCreateEmailSession(email: $email, password: $password) {
|
accountCreateEmailPasswordSession(email: $email, password: $password) {
|
||||||
expire
|
expire
|
||||||
}
|
}
|
||||||
}',
|
}',
|
||||||
|
@ -308,7 +308,7 @@ class BatchTest extends Scope
|
||||||
$this->assertIsArray($response['body']['data']);
|
$this->assertIsArray($response['body']['data']);
|
||||||
$this->assertArrayNotHasKey('errors', $response['body']);
|
$this->assertArrayNotHasKey('errors', $response['body']);
|
||||||
$this->assertArrayHasKey('accountCreate', $response['body']['data']);
|
$this->assertArrayHasKey('accountCreate', $response['body']['data']);
|
||||||
$this->assertArrayHasKey('accountCreateEmailSession', $response['body']['data']);
|
$this->assertArrayHasKey('accountCreateEmailPasswordSession', $response['body']['data']);
|
||||||
$this->assertEquals('Tester', $response['body']['data']['accountCreate']['name']);
|
$this->assertEquals('Tester', $response['body']['data']['accountCreate']['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue