diff --git a/tests/AuthTest.php b/tests/AuthTest.php index 20a9c75..6337a4c 100644 --- a/tests/AuthTest.php +++ b/tests/AuthTest.php @@ -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'));