Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock(IfViewHelper::class, ['renderThenChild', 'renderElseChild']);
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     $this->arguments['reverse'] = NULL;
     $this->arguments['key'] = NULL;
     $this->arguments['iteration'] = NULL;
 }
Example #3
0
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMock(CycleViewHelper::class, array('renderChildren'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
Example #4
0
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMock('TYPO3Fluid\\Fluid\\ViewHelpers\\CycleViewHelper', array('renderChildren'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock('TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractConditionViewHelper', array('getRenderingContext', 'renderChildren', 'hasArgument'));
     $this->viewHelper->expects($this->any())->method('getRenderingContext')->will($this->returnValue($this->renderingContext));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->subject = $this->getMock(RenderViewHelper::class, array('renderChildren'));
     $this->view = $this->getMock(TemplateView::class, array('renderPartial', 'renderSection'));
     $this->view->setRenderingContext($this->renderingContext);
     $container = new ViewHelperVariableContainer();
     $container->setView($this->view);
     $this->renderingContext->setViewHelperVariableContainer($container);
     $this->subject->setRenderingContext($this->renderingContext);
 }
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMock('TYPO3Fluid\\Fluid\\ViewHelpers\\Format\\PrintfViewHelper', array('renderChildren'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
 }
Example #8
0
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMock(SwitchViewHelper::class, array('renderChildren'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
 }
Example #9
0
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMock(GroupedForViewHelper::class, ['renderChildren']);
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
 }
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock(CountViewHelper::class, array('buildRenderChildrenClosure'));
 }
Example #11
0
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock(CountViewHelper::class, ['renderChildren']);
 }
Example #12
0
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock('TYPO3Fluid\\Fluid\\ViewHelpers\\CountViewHelper', array('renderChildren'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock(AbstractConditionViewHelper::class, array('renderChildren', 'hasArgument'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
 }
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMock(HtmlspecialcharsViewHelper::class, ['renderChildren']);
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
 }