diff --git a/tests/AuthorizationValidators/BearerTokenValidatorTest.php b/tests/AuthorizationValidators/BearerTokenValidatorTest.php index 705368e4c..634227f89 100644 --- a/tests/AuthorizationValidators/BearerTokenValidatorTest.php +++ b/tests/AuthorizationValidators/BearerTokenValidatorTest.php @@ -41,6 +41,11 @@ public function testBearerTokenValidatorAcceptsValidToken() $response = $bearerTokenValidator->validateAuthorization($request); $this->assertArrayHasKey('authorization', $response->getHeaders()); + + $this->assertEquals('token-id', $response->getAttribute('oauth_access_token_id')); + $this->assertEquals('client-id', $response->getAttribute('oauth_client_id')); + $this->assertEquals('user-id', $response->getAttribute('oauth_user_id')); + $this->assertEquals('scope1 scope2 scope3 scope4', $response->getAttribute('oauth_scopes')); } public function testBearerTokenValidatorRejectsExpiredToken()