Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered committed Sep 5, 2024
1 parent 5a461a3 commit 2110108
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/RefreshTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ public function testRefreshTokenBasic(): void
'client_id',
'client_secret',
[
'scopes' => ['scope1', 'scope2'],
'scopes' => ['scope1', 'scope2'],
'auth_type' => 'basic',
]
);

$this->assertEquals('this_is_my_access_token', $accessToken);
Http::assertSent(static function (Request $request) {
return $request->hasHeader('Authorization', 'Basic Y2xpZW50X2lkOmNsaWVudF9zZWNyZXQ=') && $request->url() === 'https://example.com/oauth/token' && $request['grant_type'] === 'client_credentials' && $request['scope'] === 'scope1 scope2';

});
}

Expand Down

0 comments on commit 2110108

Please sign in to comment.