From 9593d1e809be6566098b8727263b37477fe159a2 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Mon, 24 Jan 2022 12:07:12 +0100 Subject: [PATCH] Fix tests according to the latest permissions change [deploy dev] --- api/tests/unit/components/Tokens/TokensFactoryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tests/unit/components/Tokens/TokensFactoryTest.php b/api/tests/unit/components/Tokens/TokensFactoryTest.php index 8932613..253c7d3 100644 --- a/api/tests/unit/components/Tokens/TokensFactoryTest.php +++ b/api/tests/unit/components/Tokens/TokensFactoryTest.php @@ -93,7 +93,7 @@ class TokensFactoryTest extends TestCase { $token = $factory->createForMinecraftAccount($account, $clientToken); $this->assertEqualsWithDelta(time(), $token->getClaim('iat'), 5); $this->assertEqualsWithDelta(time() + 60 * 60 * 24 * 2, $token->getClaim('exp'), 5); - $this->assertSame('minecraft_server_session', $token->getClaim('scope')); + $this->assertSame('obtain_own_account_info minecraft_server_session', $token->getClaim('scope')); $this->assertNotSame('e44fae79-f80e-4975-952e-47e8a9ed9472', $token->getClaim('ely-client-token')); $this->assertSame('ely|1', $token->getClaim('sub')); }