/** * @test */ public function shouldInvokeActionWhenBeforeFilterReturnsTrue() { //given SampleController::$beforeActionResult = true; SampleController::$actionCalled = false; Route::any('/sample/action', 'sample#action'); //when $this->get('/sample/action'); //then $this->assertTrue(SampleController::$actionCalled); }