/**
  * Injects a fresh rendering context
  *
  * @param Tx_Fluid_Core_Rendering_RenderingContextInterface $renderingContext
  * @return void
  * @author Robert Lemke <*****@*****.**>
  */
 public function setRenderingContext(Tx_Fluid_Core_Rendering_RenderingContextInterface $renderingContext)
 {
     $this->baseRenderingContext = $renderingContext;
     $this->baseRenderingContext->getViewHelperVariableContainer()->setView($this);
     $this->controllerContext = $renderingContext->getControllerContext();
 }
 /**
  * @test
  * @author Sebastian Kurfürst <*****@*****.**>
  */
 public function controllerContextCanBeReadCorrectly()
 {
     $controllerContext = $this->getMock('Tx_Extbase_MVC_Controller_ControllerContext', array(), array(), '', FALSE);
     $this->renderingContext->setControllerContext($controllerContext);
     $this->assertSame($this->renderingContext->getControllerContext(), $controllerContext);
 }