Neos\FluidAdaptor\Tests\Unit\Core\ViewHelper\AbstractViewHelperTest::initializeArgumentsAndRenderCallsTheCorrectSequenceOfMethods PHP Метод

initializeArgumentsAndRenderCallsTheCorrectSequenceOfMethods() публичный Метод

    public function initializeArgumentsAndRenderCallsTheCorrectSequenceOfMethods()
    {
        $viewHelper = $this->getAccessibleMock(AbstractViewHelper::class, array('validateArguments', 'initialize', 'callRenderMethod'));
        $viewHelper->expects($this->at(0))->method('validateArguments');
        $viewHelper->expects($this->at(1))->method('initialize');
        $viewHelper->expects($this->at(2))->method('callRenderMethod')->will($this->returnValue('Output'));
        $expectedOutput = 'Output';
        $actualOutput = $viewHelper->initializeArgumentsAndRender(array('argument1' => 'value1'));
        $this->assertEquals($expectedOutput, $actualOutput);
    }