Ejemplo n.º 1
0
 /**
  * @test
  */
 public function renderRemovesSwitchExpressionFromViewHelperVariableContainerAfterInvocation()
 {
     $this->viewHelperVariableContainer->expects($this->at(1))->method('addOrUpdate')->with(\TYPO3\CMS\Fluid\ViewHelpers\SwitchViewHelper::class, 'stateStack', array(array('break' => false, 'expression' => 'switchExpression')));
     $this->viewHelperVariableContainer->expects($this->at(2))->method('get')->will($this->returnValue(array(array('break' => true, 'expression' => 'switchExpression'))));
     $this->viewHelperVariableContainer->expects($this->at(3))->method('addOrUpdate')->with(\TYPO3\CMS\Fluid\ViewHelpers\SwitchViewHelper::class, 'stateStack', array());
     $this->viewHelper->render('switchExpression');
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function renderRemovesSwitchExpressionFromViewHelperVariableContainerAfterInvocation()
 {
     $this->viewHelperVariableContainer->expects($this->at(4))->method('remove')->with('TYPO3\\CMS\\Fluid\\ViewHelpers\\SwitchViewHelper', 'switchExpression');
     $this->viewHelper->render('switchExpression');
 }