From 5b3659af7ca2e7f5f38653f8d1a9510ddb4d3ff1 Mon Sep 17 00:00:00 2001 From: shimon Date: Fri, 28 Nov 2025 16:11:48 +0200 Subject: [PATCH] Remove unused Auth import in storage controller and fix formatting in UserTest class --- app/controllers/api/storage.php | 1 - tests/unit/Utopia/Database/Documents/UserTest.php | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 32ad32b888..79630978d9 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -2,7 +2,6 @@ use Ahc\Jwt\JWT; use Ahc\Jwt\JWTException; -use Appwrite\Auth\Auth; use Appwrite\ClamAV\Network; use Appwrite\Event\Delete; use Appwrite\Event\Event; diff --git a/tests/unit/Utopia/Database/Documents/UserTest.php b/tests/unit/Utopia/Database/Documents/UserTest.php index a1f4a207e8..d5706e7bec 100644 --- a/tests/unit/Utopia/Database/Documents/UserTest.php +++ b/tests/unit/Utopia/Database/Documents/UserTest.php @@ -14,7 +14,6 @@ use Utopia\Database\Validator\Roles; class UserTest extends TestCase { - private $authorization; public function getAuthorization(): Authorization @@ -274,7 +273,7 @@ class UserTest extends TestCase // Enable single verification type $user['emailVerification'] = true; - $roles = $user->getRoles($this->getAuthorization() ); + $roles = $user->getRoles($this->getAuthorization()); $this->assertContains(Role::users(Roles::DIMENSION_VERIFIED)->toString(), $roles); $this->assertContains(Role::user(ID::custom('123'), Roles::DIMENSION_VERIFIED)->toString(), $roles); }