Neos\Flow\Tests\FunctionalTestCase::registerRoute PHP Метод

registerRoute() защищенный Метод

Adds a route that can be used in the functional tests
protected registerRoute ( string $name, string $uriPattern, array $defaults, boolean $appendExceedingArguments = false, array $httpMethods = null ) : Route
$name string Name of the route
$uriPattern string The uriPattern property of the route
$defaults array An array of defaults declarations
$appendExceedingArguments boolean If exceeding arguments may be appended
$httpMethods array An array of accepted http methods
Результат Neos\Flow\Mvc\Routing\Route
    protected function registerRoute($name, $uriPattern, array $defaults, $appendExceedingArguments = false, array $httpMethods = null)
    {
        $route = new Route();
        $route->setName($name);
        $route->setUriPattern($uriPattern);
        $route->setDefaults($defaults);
        $route->setAppendExceedingArguments($appendExceedingArguments);
        if ($httpMethods !== null) {
            $route->setHttpMethods($httpMethods);
        }
        $this->router->addRoute($route);
        return $route;
    }