public static function get($uri, $action, array $options = array())
{
Route::get(self::uri($uri), self::action($action), $options);
}
/** * @test */ public function shouldAddGetRoute() { //given GroupedRoute::get('/user/index', 'User#index'); GroupedRoute::get('/user/show/id/:id', 'User#show'); //when $routes = Route::getRoutes(); //then Assert::thatArray($routes)->onMethod('getUri')->containsOnly('/api/user/index', '/api/user/show/id/:id'); }