/** * Set up framework * * @return void */ public function setUp() { $this->fixture = new Tx_News_Controller_NewsController(); $this->newsRepository = $this->getMock('Tx_News_Domain_Repository_NewsRepository', array(), array(), '', FALSE); $this->fixture->injectNewsRepository($this->newsRepository); }
/** * Function will be called before every other action * * @return void */ public function initializeAction() { $this->pageUid = (int) t3lib_div::_GET('id'); parent::initializeAction(); }
/** * Function will be called before every other action * * @return void */ public function initializeAction() { $this->pageUid = (int) \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('id'); $this->setTsConfig(); parent::initializeAction(); }
/** * Output a nivolider view of news * * @return return string the Rendered view */ public function nivosliderAction() { $demand = parent::createDemandObjectFromSettings($this->settings); $this->view->assign('news', $this->newsRepository->findDemanded($demand)); }