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

parseSetsDefaultValueOfRouteParts() public method

    public function parseSetsDefaultValueOfRouteParts()
    {
        $this->route->setUriPattern('{key1}');
        $this->route->setRoutePartsConfiguration(['key1' => ['handler' => 'SomeRoutePartHandler']]);
        $this->route->setDefaults(['key1' => 'SomeDefaultValue']);
        $mockRoutePartHandler = $this->createMock(Routing\DynamicRoutePartInterface::class);
        $mockRoutePartHandler->expects($this->once())->method('setDefaultValue')->with('SomeDefaultValue');
        $this->mockObjectManager->expects($this->once())->method('get')->with('SomeRoutePartHandler')->will($this->returnValue($mockRoutePartHandler));
        $this->route->parse();
    }
RouteTest