public function setUp() { parent::setUp(); $this->recordMonitor = GeneralUtility::makeInstance('ApacheSolrForTypo3\\Solr\\IndexQueue\\RecordMonitor'); $this->dataHandler = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler'); $this->indexQueue = GeneralUtility::makeInstance('ApacheSolrForTypo3\\Solr\\IndexQueue\\Queue'); }
/** * @return void */ public function setUp() { parent::setUp(); $this->setUpBackendUserFromFixture(1); $this->pageInitializer = GeneralUtility::makeInstance('ApacheSolrForTypo3\\Solr\\IndexQueue\\Initializer\\Page'); $this->indexQueue = GeneralUtility::makeInstance('ApacheSolrForTypo3\\Solr\\IndexQueue\\Queue'); }
/** * @return void */ public function setUp() { parent::setUp(); $this->indexQueue = GeneralUtility::makeInstance(Queue::class); /** @var $beUser \TYPO3\CMS\Core\Authentication\BackendUserAuthentication */ $beUser = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication'); $GLOBALS['BE_USER'] = $beUser; /** @var $languageService \TYPO3\CMS\Lang\LanguageService */ $languageService = GeneralUtility::makeInstance('TYPO3\\CMS\\Lang\\LanguageService'); $languageService->csConvObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Charset\\CharsetConverter'); $GLOBALS['LANG'] = $languageService; }
public function setUp() { parent::setUp(); $GLOBALS['TYPO3_CONF_VARS']['FE']['addAllowedPaths'] = $this->getFixtureRootPath(); $TT = $this->getMockBuilder(TimeTracker::class)->disableOriginalConstructor()->getMock(); $TT->expects($this->any())->method('setTSlogMessage')->will($this->returnCallback(function ($message) { echo $message; })); $GLOBALS['TT'] = $TT; /** @var $TSFE \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController */ $TSFE = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController', array(), 1, 0); $GLOBALS['TSFE'] = $TSFE; /** @var $TMPL \TYPO3\CMS\Core\TypoScript\TemplateService */ $TMPL = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TypoScript\\TemplateService'); $TMPL->init(); $GLOBALS['TSFE']->tmpl = $TMPL; $GLOBALS['TSFE']->renderCharset = 'utf-8'; $GLOBALS['TSFE']->csConvObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Charset\\CharsetConverter'); }
/** * Executed after each test. Emptys solr and checks if the index is empty */ public function tearDown() { $this->cleanUpSolrServerAndAssertEmpty(); parent::tearDown(); }
/** * @return void */ public function setUp() { parent::setUp(); $this->indexQueue = GeneralUtility::makeInstance('ApacheSolrForTypo3\\Solr\\IndexQueue\\Queue'); }
/** * @return void */ public function setUp() { parent::setUp(); $this->solrService = GeneralUtility::makeInstance('ApacheSolrForTypo3\\Solr\\SolrService', 'localhost', 8080, '/solr/core_en/'); }