Neos\Flow\Tests\Unit\Mvc\Routing\RouteTest::resolvesAppendsDefaultValuesOfOptionalUriPartsToResolvedUriPath PHP Method

resolvesAppendsDefaultValuesOfOptionalUriPartsToResolvedUriPath() public method

    public function resolvesAppendsDefaultValuesOfOptionalUriPartsToResolvedUriPath()
    {
        $this->route->setUriPattern('foo(/{bar}/{baz})');
        $this->route->setDefaults(['bar' => 'barDefaultValue', 'baz' => 'bazDefaultValue']);
        $this->routeValues = ['baz' => 'bazValue'];
        $this->route->resolves($this->routeValues);
        $expectedResult = 'foo/barDefaultValue/bazvalue';
        $actualResult = $this->route->getResolvedUriPath();
        $this->assertSame($expectedResult, $actualResult);
    }
RouteTest