Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
Should have fixed auth guards.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Sep 2, 2021
1 parent d1061cd commit e173697
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/AuthTest.php
Expand Up @@ -17,6 +17,14 @@ public function test_user(): void

static::assertSame($user, user());

config()->set('auth.guards', [
'api' => [
'driver' => 'token',
'provider' => 'users',
'hash' => false,
],
]);

$this->actingAs($user, 'api');

static::assertSame($user, user('api'));
Expand Down

0 comments on commit e173697

Please sign in to comment.