1
0
Fork 0
mirror of synced 2024-07-01 20:50:49 +12:00

fix: failing tests

This commit is contained in:
Christy Jacob 2023-12-09 00:36:01 +01:00
parent 75e1779921
commit aeeb7e1d55
4 changed files with 5 additions and 5 deletions

View file

@ -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);
}

View file

@ -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);

View file

@ -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',

View file

@ -32,7 +32,7 @@ trait StoragePermissionsScope
'password' => $password,
]);
$session = $session['a_session_' . $this->getProject()['$id']];
$session = $session['cookies']['a_session_' . $this->getProject()['$id']];
$user = [