diff --git a/tests/e2e/Services/Account/AccountCustomClientTest.php b/tests/e2e/Services/Account/AccountCustomClientTest.php index 952cdaf2b1..be1abdec21 100644 --- a/tests/e2e/Services/Account/AccountCustomClientTest.php +++ b/tests/e2e/Services/Account/AccountCustomClientTest.php @@ -2160,12 +2160,14 @@ class AccountCustomClientTest extends Scope * @depends testGetAccountSessions * @depends testGetAccountLogs */ - public function testUpdateUniversalToken(array $data): array + public function testUpdateCustomSession(array $data): array { $response = $this->client->call(Client::METHOD_POST, '/users/' . $data['id'] . '/tokens', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'expire' => 60 ]); $userId = $response['body']['userId']; diff --git a/tests/e2e/Services/Users/UsersBase.php b/tests/e2e/Services/Users/UsersBase.php index e542754fb7..e13b0c918d 100644 --- a/tests/e2e/Services/Users/UsersBase.php +++ b/tests/e2e/Services/Users/UsersBase.php @@ -232,14 +232,16 @@ trait UsersBase /** * @depends testCreateUser */ - public function testCreateUniversalToken(array $data): void + public function testCreateCustomSession(array $data): void { /** * Test for SUCCESS */ $token = $this->client->call(Client::METHOD_POST, '/users/' . $data['userId'] . '/tokens', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + ], $this->getHeaders()), [ + 'expire' => 60, + ]); $this->assertEquals(201, $token['headers']['status-code']); $this->assertEquals($data['userId'], $token['body']['userId']);