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 e173697 commit f5d705f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/AuthTest.php
Expand Up @@ -53,6 +53,14 @@ public function test_logged_in(): void
$table->rememberToken();
});

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

$call = logged_in($user, static function ($authenticatable) use (&$executed, $user): void {
static::assertSame($user, $authenticatable);
static::assertNull(auth()->guard('api')->user());
Expand Down

0 comments on commit f5d705f

Please sign in to comment.