Neos\Flow\Tests\Unit\Mvc\DispatchComponentTest::handleSetsActionRequestArgumentsIfARouteMatches PHP Method

handleSetsActionRequestArgumentsIfARouteMatches() public method

    public function handleSetsActionRequestArgumentsIfARouteMatches()
    {
        $this->mockHttpRequest->expects($this->any())->method('getArguments')->will($this->returnValue([]));
        $this->mockPropertyMapper->expects($this->any())->method('convert')->with('', 'array', $this->mockPropertyMappingConfiguration)->will($this->returnValue([]));
        $matchResults = ['product' => ['name' => 'Some product', 'price' => 123.45], 'toBeOverridden' => 'from route', 'newValue' => 'new value from route'];
        $this->mockActionRequest->expects($this->once())->method('setArguments')->with($matchResults);
        $this->mockComponentContext->expects($this->atLeastOnce())->method('getParameter')->with(RoutingComponent::class, 'matchResults')->will($this->returnValue($matchResults));
        $this->dispatchComponent->handle($this->mockComponentContext);
    }