Skip to content

Commit

Permalink
update mockResponse in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Nov 18, 2024
1 parent 86e610a commit 3ab6125
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/Http/Authentication/AuthenticateRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
],
])),
]);

Expand Down Expand Up @@ -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',
],
],
])),
]);

Expand Down

0 comments on commit 3ab6125

Please sign in to comment.