From 6bf82c3dc55c2ff82ca885c81f0d9de284f7538a Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Mon, 15 Jan 2024 11:30:54 +0000 Subject: [PATCH] test: fix user token test --- tests/e2e/Services/Users/UsersBase.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/e2e/Services/Users/UsersBase.php b/tests/e2e/Services/Users/UsersBase.php index eb12de7ae2..78f705660e 100644 --- a/tests/e2e/Services/Users/UsersBase.php +++ b/tests/e2e/Services/Users/UsersBase.php @@ -248,17 +248,9 @@ trait UsersBase $this->assertEquals($data['userId'], $token['body']['userId']); $this->assertNotEmpty($token['body']['secret']); $this->assertNotEmpty($token['body']['expire']); - - /** - * Test for FAILURE - */ - $token = $this->client->call(Client::METHOD_POST, '/users/invalid/tokens', array_merge([ - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); - - $this->assertEquals($token['headers']['status-code'], 404); } + /** * Tests all optional parameters of createUser (email, phone, anonymous..) *