diff --git a/tests/Http/Authentication/AuthenticateRequestTest.php b/tests/Http/Authentication/AuthenticateRequestTest.php index a4973da5..7592c7c9 100644 --- a/tests/Http/Authentication/AuthenticateRequestTest.php +++ b/tests/Http/Authentication/AuthenticateRequestTest.php @@ -301,7 +301,12 @@ public function it_handles_requests_with_client_id_with_missing_sapi_permission_ { $mockHandler = new MockHandler([ new Response(200, [], Json::encode([ - 'client_metadata' => ['publiq-apis' => 'ups entry'], + 0 => [ + 'defaultClientScopes' => [ + 'publiq-api-ups-scope', + 'publiq-api-entry-scope', + ], + ], ])), ]); @@ -425,7 +430,13 @@ public function it_handles_valid_requests_with_client_id(ServerRequestInterface { $mockHandler = new MockHandler([ new Response(200, [], Json::encode([ - 'client_metadata' => ['publiq-apis' => 'ups entry sapi'], + 0 => [ + 'defaultClientScopes' => [ + 'publiq-api-ups-scope', + 'publiq-api-entry-scope', + 'publiq-api-sapi-scope', + ], + ], ])), ]);