/**
  */
 public function setUp()
 {
     $this->viewHelper = $this->getAccessibleMock(\TYPO3\Fluid\Core\Widget\AbstractWidgetViewHelper::class, array('validateArguments', 'initialize', 'callRenderMethod', 'getWidgetConfiguration', 'getRenderingContext'));
     $this->ajaxWidgetContextHolder = $this->getMock(\TYPO3\Fluid\Core\Widget\AjaxWidgetContextHolder::class);
     $this->viewHelper->injectAjaxWidgetContextHolder($this->ajaxWidgetContextHolder);
     $this->widgetContext = $this->getMock(\TYPO3\Fluid\Core\Widget\WidgetContext::class);
     $this->viewHelper->injectWidgetContext($this->widgetContext);
     $this->objectManager = $this->getMock(\TYPO3\Flow\Object\ObjectManagerInterface::class);
     $this->viewHelper->injectObjectManager($this->objectManager);
     $this->controllerContext = $this->getMock(\TYPO3\Flow\Mvc\Controller\ControllerContext::class, array(), array(), '', FALSE);
     $this->viewHelper->_set('controllerContext', $this->controllerContext);
     $this->request = $this->getMock(\TYPO3\Flow\Mvc\ActionRequest::class, array(), array(), '', FALSE);
 }
 /**
  */
 public function setUp()
 {
     $this->viewHelper = $this->getAccessibleMock('TYPO3\\Fluid\\Core\\Widget\\AbstractWidgetViewHelper', array('validateArguments', 'initialize', 'callRenderMethod', 'getWidgetConfiguration', 'getRenderingContext'));
     $this->mockExtensionService = $this->getMock('TYPO3\\CMS\\Extbase\\Service\\ExtensionService');
     $this->viewHelper->injectExtensionService($this->mockExtensionService);
     $this->ajaxWidgetContextHolder = $this->getMock('TYPO3\\Fluid\\Core\\Widget\\AjaxWidgetContextHolder');
     $this->viewHelper->injectAjaxWidgetContextHolder($this->ajaxWidgetContextHolder);
     $this->widgetContext = $this->getMock('TYPO3\\Fluid\\Core\\Widget\\WidgetContext');
     $this->objectManager = $this->getMock('TYPO3\\Fluid\\Object\\ObjectManagerInterface');
     $this->objectManager->expects($this->at(0))->method('create')->with('TYPO3\\Fluid\\Core\\Widget\\WidgetContext')->will($this->returnValue($this->widgetContext));
     $this->viewHelper->injectObjectManager($this->objectManager);
     $this->request = $this->getMock('TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request');
     $this->controllerContext = $this->getMock('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\ControllerContext', array(), array(), '', FALSE);
     $this->controllerContext->expects($this->any())->method('getRequest')->will($this->returnValue($this->request));
     $this->viewHelper->_set('controllerContext', $this->controllerContext);
 }