Neos\Neos\Tests\Unit\ViewHelpers\Uri\ModuleViewHelperTest::callingRenderAssignsVariablesCorrectlyToUriBuilder PHP Method

callingRenderAssignsVariablesCorrectlyToUriBuilder() public method

    public function callingRenderAssignsVariablesCorrectlyToUriBuilder()
    {
        $this->uriBuilder->expects($this->once())->method('setSection')->with('section')->will($this->returnSelf());
        $this->uriBuilder->expects($this->once())->method('setArguments')->with(array('additionalParams'))->will($this->returnSelf());
        $this->uriBuilder->expects($this->once())->method('setArgumentsToBeExcludedFromQueryString')->with(array('argumentsToBeExcludedFromQueryString'))->will($this->returnSelf());
        $this->uriBuilder->expects($this->once())->method('setFormat')->with('format')->will($this->returnSelf());
        $expectedModifiedArguments = array('module' => 'the/path', 'moduleArguments' => array('arguments', '@action' => 'action'));
        $this->uriBuilder->expects($this->once())->method('uriFor')->with('index', $expectedModifiedArguments);
        // fallback for the method chaining of the URI builder
        $this->uriBuilder->expects($this->any())->method($this->anything())->will($this->returnValue($this->uriBuilder));
        $this->viewHelper->render('the/path', 'action', array('arguments'), 'section', 'format', array('additionalParams'), true, array('argumentsToBeExcludedFromQueryString'));
    }