/**
  * @test
  * @expectedException \TYPO3\CMS\Fluid\Core\Widget\Exception\RenderingContextNotFoundException
  */
 public function renderThrowsExceptionIfTheChildNodeRenderingContextIsNotThere()
 {
     $this->request = $this->getMock(\TYPO3\CMS\Fluid\Core\Widget\WidgetRequest::class);
     $this->controllerContext->expects($this->any())->method('getRequest')->will($this->returnValue($this->request));
     $this->viewHelper->initializeArguments();
     $widgetContext = $this->getMock(\TYPO3\CMS\Fluid\Core\Widget\WidgetContext::class);
     $this->request->expects($this->any())->method('getWidgetContext')->will($this->returnValue($widgetContext));
     $widgetContext->expects($this->any())->method('getViewHelperChildNodeRenderingContext')->will($this->returnValue(NULL));
     $widgetContext->expects($this->any())->method('getViewHelperChildNodes')->will($this->returnValue(NULL));
     $this->viewHelper->render();
 }