diff --git a/tests/Integration/Auth/ApiAuthenticationWithEloquentTest.php b/tests/Integration/Auth/ApiAuthenticationWithEloquentTest.php index cf6c6cc5246f..89480dc85569 100644 --- a/tests/Integration/Auth/ApiAuthenticationWithEloquentTest.php +++ b/tests/Integration/Auth/ApiAuthenticationWithEloquentTest.php @@ -21,6 +21,12 @@ protected function getEnvironmentSetUp($app) $app['config']->set('auth.defaults.guard', 'api'); $app['config']->set('auth.providers.users.model', User::class); + $app['config']->set('auth.guards.api', [ + 'driver' => 'token', + 'provider' => 'users', + 'hash' => false, + ]); + // Database configuration $app['config']->set('database.default', 'testbench'); diff --git a/tests/Integration/Foundation/Testing/Concerns/InteractsWithAuthenticationTest.php b/tests/Integration/Foundation/Testing/Concerns/InteractsWithAuthenticationTest.php index 897ddde0e3f3..cc02e699c8aa 100644 --- a/tests/Integration/Foundation/Testing/Concerns/InteractsWithAuthenticationTest.php +++ b/tests/Integration/Foundation/Testing/Concerns/InteractsWithAuthenticationTest.php @@ -16,6 +16,12 @@ protected function getEnvironmentSetUp($app) { $app['config']->set('auth.providers.users.model', AuthenticationTestUser::class); + $app['config']->set('auth.guards.api', [ + 'driver' => 'token', + 'provider' => 'users', + 'hash' => false, + ]); + $app['config']->set('database.default', 'testbench'); $app['config']->set('database.connections.testbench', [ 'driver' => 'sqlite',