Skip to content

Commit

Permalink
Update TestCase.php
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte authored Aug 31, 2021
1 parent e0868b4 commit baeee79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ protected function getEnvironmentSetUp($app)
$app['config']->set('permission.column_names.permission_pivot_key', 'permission_test_id');
$app['config']->set('view.paths', [__DIR__.'/resources/views']);

// ensure api guard exists (required since Laravel 8.55)
$app['config']->set('auth.guards.api', ['driver' => 'session', 'provider' => 'users']);

// Set-up admin guard
$app['config']->set('auth.guards.admin', ['driver' => 'session', 'provider' => 'admins']);
$app['config']->set('auth.providers.admins', ['driver' => 'eloquent', 'model' => Admin::class]);
Expand Down

0 comments on commit baeee79

Please sign in to comment.