Skip to content

Commit

Permalink
Fix middleware registration test
Browse files Browse the repository at this point in the history
  • Loading branch information
reinink committed Sep 30, 2020
1 parent 8c858e7 commit fecb9ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public function test_route_macro_is_registered()

public function test_middleware_is_registered()
{
$kernel = App::make(Kernel::class);
$middleware = App::make(Kernel::class)->getMiddlewareGroups();

$this->assertTrue($kernel->hasMiddleware(Middleware::class));
$this->assertContains(Middleware::class, $middleware['web']);
}

public function test_validation_errors_are_registered()
Expand Down

0 comments on commit fecb9ec

Please sign in to comment.