From e17369728c965520bab55f1aa327d36a2ab906a1 Mon Sep 17 00:00:00 2001 From: DarkGhosthunter Date: Wed, 1 Sep 2021 20:24:53 -0400 Subject: [PATCH] Should have fixed auth guards. --- tests/AuthTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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'));