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