Skip to content

Commit

Permalink
Fix basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered committed Sep 5, 2024
1 parent aaef3d6 commit 5a461a3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/RefreshTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ class RefreshTokenTest extends TestCase
public function testRefreshTokenBasic(): void
{
Cache::clear();
$accessToken = app(RefreshToken::class)('my_token', 'https://example.com/oauth/token', 'client_id', 'client_secret', ['scopes' => ['scope1', 'scope2']]);
$accessToken = app(RefreshToken::class)(
'my_token',
'https://example.com/oauth/token',
'client_id',
'client_secret',
[
'scopes' => ['scope1', 'scope2'],
'auth_type' => 'basic',
]
);

$this->assertEquals('this_is_my_access_token', $accessToken);
Http::assertSent(static function (Request $request) {
Expand Down

0 comments on commit 5a461a3

Please sign in to comment.