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 3c66423 commit e4931d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions tests/Feature/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ public function testScopesWhenClientHasScope(): void
$this->assertTrue($client->hasScope('foo'));
}

public function testScopesWhenClientHasAny(): void
{
$client = new Client(['scopes' => ['*']]);
$client->exists = true;

$this->assertTrue($client->hasScope('foo'));
}

public function testGrantTypesWhenClientDoesNotHaveGrantType(): void
{
$client = new Client(['grant_types' => ['bar']]);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/BridgeScopeRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function test_invalid_scopes_are_removed()
]);

$client = Mockery::mock(ClientModel::class)->makePartial();
$client->scopes = ['*'];
$client->scopes = ['scope-1'];

$clients = Mockery::mock(ClientRepository::class);
$clients->shouldReceive('findActive')->withAnyArgs()->andReturn($client);
Expand Down

0 comments on commit e4931d5

Please sign in to comment.