/** * @return Tx_PtExtlist_Domain_Model_List_IterationListDataInterface|void */ public function getIterationListData() { $rendererChainConfiguration = $this->configurationBuilder->buildRendererChainConfiguration(); $rendererChain = $this->rendererChainFactory->getRendererChain($rendererChainConfiguration); $dataSource = new Tx_PtExtlist_Tests_Performance_TestDataSource($this->rowCount, $this->colCount); $iterationListData = new Tx_PtExtlist_Domain_Model_List_IterationListData(); $iterationListData->_injectDataSource($dataSource); $iterationListData->_injectDataMapper($this->dataMapper); $iterationListData->_injectRenderChain($rendererChain); return $iterationListData; }
/** * @param $rows * @param $cols * @return Tx_PtExtlist_Domain_Model_List_IterationListData */ protected function getIterationListDataObject($rows, $cols) { $this->initDefaultConfigurationBuilderMock(); $dataSource = new Tx_PtExtlist_Tests_Performance_TestDataSource($rows, $cols); $dataMapper = new Tx_PtExtlist_Domain_DataBackend_Mapper_ArrayMapper($this->configurationBuilderMock); $rendererChainConfiguration = $this->configurationBuilderMock->buildRendererChainConfiguration(); $rendererChain = $this->rendererChainFactory->getRendererChain($rendererChainConfiguration); $fixture = new Tx_PtExtlist_Domain_Model_List_IterationListData(); $fixture->_injectDataSource($dataSource); $fixture->_injectDataMapper($dataMapper); $fixture->_injectRenderChain($rendererChain); return $fixture; }