2 namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
27 $this->viewHelper = $this->getMock(\TYPO3\CMS\
Fluid\ViewHelpers\SwitchViewHelper::class, array(
'renderChildren'));
29 $this->viewHelper->initializeArguments();
37 $switchExpression = new \stdClass();
38 $this->viewHelperVariableContainer->expects($this->at(1))->method(
'addOrUpdate')->with(\TYPO3\CMS\
Fluid\ViewHelpers\SwitchViewHelper::class,
'stateStack', array(array(
40 'expression' => $switchExpression
42 $this->viewHelperVariableContainer->expects($this->at(2))->method(
'get')->will($this->returnValue(array(array(
44 'expression' => $switchExpression
46 $this->viewHelper->render($switchExpression);
54 $this->viewHelperVariableContainer->expects($this->at(1))->method(
'addOrUpdate')->with(\TYPO3\CMS\
Fluid\ViewHelpers\SwitchViewHelper::class,
'stateStack', array(array(
56 'expression' =>
'switchExpression'
58 $this->viewHelperVariableContainer->expects($this->at(2))->method(
'get')->will($this->returnValue(array(array(
60 'expression' =>
'switchExpression'
62 $this->viewHelperVariableContainer->expects($this->at(3))->method(
'addOrUpdate')->with(\TYPO3\CMS\
Fluid\ViewHelpers\SwitchViewHelper::class,
'stateStack', array());
63 $this->viewHelper->render(
'switchExpression');