diff --git a/tests/TestCase.php b/tests/TestCase.php index 8c40ce6..c16034f 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -39,6 +39,9 @@ protected function getPackageProviders($app) public function getEnvironmentSetUp($app) { $app['config']->set('database.default', 'testing'); - $app['router']->get('posts/{id}', [PostController::class, 'show'])->name('posts.show'); + + $app['router']->middleware('publisher') + ->get('posts/{id}', [PostController::class, 'show']) + ->name('posts.show'); } }