/** * @param \TYPO3\CMS\Fluid\Core\Widget\WidgetContext $widgetContext * @return void */ public function setWidgetContext(\TYPO3\CMS\Fluid\Core\Widget\WidgetContext $widgetContext) { $this->widgetContext = $widgetContext; $this->setControllerObjectName($widgetContext->getControllerObjectName()); }
/** * @test */ public function controllerObjectNameCanBeReadAgain() { $this->widgetContext->setControllerObjectName('Tx_Fluid_Object_Name'); $this->assertEquals('Tx_Fluid_Object_Name', $this->widgetContext->getControllerObjectName()); }