Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari committed Jul 29, 2024
1 parent 676b43c commit d8e89ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions database/factories/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ public function asPasswordClient()
public function asPersonalAccessTokenClient()
{
return $this->state([
'personal_access_client' => true,
'password_client' => false,
'grant_types' => ['personal_access'],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/PersonalAccessTokenFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function testIssueToken()
]);

/** @var Client $client */
$client = ClientFactory::new()->asPersonalAccessTokenClient()->create();
$client = ClientFactory::new()->asPersonalAccessTokenClient()->create(['scopes' => ['foo', 'bar']]);

config([
'passport.personal_access_client.id' => $client->getKey(),
Expand Down

0 comments on commit d8e89ca

Please sign in to comment.