From c08acedf6ac05e128cb33bbebde1522bbdbec984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 23 Dec 2025 15:12:41 +0100 Subject: [PATCH] Fix key test --- tests/unit/Auth/KeyTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/unit/Auth/KeyTest.php b/tests/unit/Auth/KeyTest.php index 920608e82f..727162433a 100644 --- a/tests/unit/Auth/KeyTest.php +++ b/tests/unit/Auth/KeyTest.php @@ -24,8 +24,12 @@ class KeyTest extends TestCase $roleScopes = Config::getParam('roles', [])[User::ROLE_APPS]['scopes']; $key = static::generateKey($projectId, $usage, $scopes); - $project = new Document(['$id' => $projectId,]); - $decoded = Key::decode($project, $key); + $decoded = Key::decode( + project: new Document(['$id' => $projectId]), + team: new Document(), + user: new Document(), + key: $key, + ); $this->assertEquals($projectId, $decoded->getProjectId()); $this->assertEquals(API_KEY_DYNAMIC, $decoded->getType());