public function test_can_set_the_correct_page_title() { Helpers::shouldReceive('setPageTitle')->with('404 Error')->once(); View::share('title', 'foo'); // Prevent an for this test irrelevant ErrorException $controller = new BaseController(); $controller->missingMethod(array()); }
/** * Abort the app and return the backend 404 response * * @return Response Returns a 404 Response with view */ public function force404() { $controller = new BaseController(); return $controller->missingMethod(array()); }
public function __construct(Helpers $helpers) { parent::__construct($helpers); $this->init(); }