fix: failing tests
This commit is contained in:
parent
75e1779921
commit
aeeb7e1d55
4 changed files with 5 additions and 5 deletions
|
@ -63,7 +63,7 @@ class AccountTest extends Scope
|
|||
$this->assertIsArray($session['body']['data']);
|
||||
$this->assertIsArray($session['body']['data']['accountCreateEmailSession']);
|
||||
|
||||
$cookie = $session['a_session_' . $this->getProject()['$id']];
|
||||
$cookie = $session['cookies']['a_session_' . $this->getProject()['$id']];
|
||||
$this->assertNotEmpty($cookie);
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ class AuthTest extends Scope
|
|||
'x-appwrite-project' => $projectId,
|
||||
], $graphQLPayload);
|
||||
|
||||
$this->token1 = $session1['a_session_' . $projectId];
|
||||
$this->token1 = $session1['cookies']['a_session_' . $projectId];
|
||||
|
||||
// Create session 2
|
||||
$graphQLPayload['variables']['email'] = $email2;
|
||||
|
@ -83,7 +83,7 @@ class AuthTest extends Scope
|
|||
'x-appwrite-project' => $projectId,
|
||||
], $graphQLPayload);
|
||||
|
||||
$this->token2 = $session1['a_session_' . $projectId];
|
||||
$this->token2 = $session2['cookies']['a_session_' . $projectId];
|
||||
|
||||
// Create database
|
||||
$query = $this->getQuery(self::$CREATE_DATABASE);
|
||||
|
|
|
@ -1313,7 +1313,7 @@ class ProjectsConsoleClientTest extends Scope
|
|||
'password' => $password,
|
||||
]);
|
||||
$this->assertEquals(201, $session['headers']['status-code']);
|
||||
$session = $session['cookie']['a_session_' . $id];
|
||||
$session = $session['cookies']['a_session_' . $id];
|
||||
|
||||
$response = $this->client->call(Client::METHOD_PATCH, '/account/password', array_merge([
|
||||
'origin' => 'http://localhost',
|
||||
|
|
|
@ -32,7 +32,7 @@ trait StoragePermissionsScope
|
|||
'password' => $password,
|
||||
]);
|
||||
|
||||
$session = $session['a_session_' . $this->getProject()['$id']];
|
||||
$session = $session['cookies']['a_session_' . $this->getProject()['$id']];
|
||||
|
||||
|
||||
$user = [
|
||||
|
|
Loading…
Reference in a new issue