Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 /**
  * 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());
 }
Ejemplo n.º 3
0
 public function __construct(Helpers $helpers)
 {
     parent::__construct($helpers);
     $this->init();
 }