/** * Sets up this test case * * @return void */ public function setUp() { $this->templateVariableContainer = $this->getMock('TYPO3Fluid\\Fluid\\Core\\Variables\\StandardVariableProvider', array('exists', 'remove', 'add')); $this->viewHelperVariableContainer = $this->getMock('TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperVariableContainer', array('setView')); $this->renderingContext = $this->getMock('TYPO3Fluid\\Fluid\\Core\\Rendering\\RenderingContext', array('getViewHelperVariableContainer', 'getVariableProvider')); $this->renderingContext->expects($this->any())->method('getViewHelperVariableContainer')->will($this->returnValue($this->viewHelperVariableContainer)); $this->renderingContext->expects($this->any())->method('getVariableProvider')->will($this->returnValue($this->templateVariableContainer)); $this->view = $this->getMockForAbstractClass('TYPO3Fluid\\Fluid\\View\\AbstractTemplateView', array(new TemplatePaths())); $this->view->setRenderingContext($this->renderingContext); }