getRoutesForController() public static method

public static getRoutesForController ( $controller )
Beispiel #1
0
 private function controller()
 {
     $controller = $this->_input->getOption('controller');
     $this->_renderRoutes(Route::getRoutesForController($controller));
 }
Beispiel #2
0
 /**
  * @test
  */
 public function shouldReturnEmptyArrayIfNoRoutesForController()
 {
     //given
     Route::any('/user/save', 'User#save');
     Route::any('/user/update/id/:id', 'User#update');
     //when
     $controllerRoutes = Route::getRoutesForController('photo');
     //then
     $this->assertEmpty($controllerRoutes);
 }