public function setUp() { parent::setUp(); $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->newsRepository = $this->objectManager->get('GeorgRinger\\News\\Domain\\Repository\\NewsRepository'); $this->importDataSet(__DIR__ . '/../Fixtures/tx_news_domain_model_news.xml'); }
protected function setUp() { parent::setUp(); $this->importDataSet(__DIR__ . '/../Fixtures/pages.xml'); $this->pageRepo = new PageRepository(); $this->pageRepo->init(false); }
/** * Set up */ protected function setUp() { parent::setUp(); $this->setUpBackendUserFromFixture(1); \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->initializeLanguageObject(); $this->importDataSet(__DIR__ . '/../Fixtures/sys_workspace.xml'); }
/** * Set up dependencies */ public function setUp() { parent::setUp(); $this->objectManager = GeneralUtility::makeInstance(ObjectManager::class); $this->queue = $this->objectManager->get(BeanstalkdQueue::class, self::QUEUE_NAME, []); /** @var Pheanstalk\Pheanstalk $client */ $client = $this->queue->getClient(); // flush queue: try { while (true) { $job = $client->peekDelayed(self::QUEUE_NAME); $client->delete($job); } } catch (\Exception $e) { } try { while (true) { $job = $client->peekBuried(self::QUEUE_NAME); $client->delete($job); } } catch (\Exception $e) { } try { while (true) { $job = $client->peekReady(self::QUEUE_NAME); $client->delete($job); } } catch (\Exception $e) { } }
public function setUp() { parent::setUp(); $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->categoryRepository = $this->objectManager->get('Tx_News_Domain_Repository_NewsRepository'); $this->importDataSet(__DIR__ . '/../Fixtures/tx_news_domain_model_category.xml'); }
public function setUp() { parent::setUp(); $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class); $this->importDataSet(__DIR__ . '/Fixtures/fixtures.xml'); $this->authCode = md5(302 . '*****@*****.**'); }
public function setUp() { parent::setUp(); $this->importDataSet(__DIR__ . '/../Fixtures/pages.xml'); $this->importDataSet(__DIR__ . '/../Fixtures/news.xml'); $this->importDataSet(__DIR__ . '/../Fixtures/events.xml'); }
protected function tearDown() { $this->assertErrorLogEntries(); unset($this->actionService); unset($this->recordIds); parent::tearDown(); }
/** * Setup * * @throws \TYPO3\CMS\Core\Tests\Exception * @return void */ public function setUp() { parent::setUp(); $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->categoryRepository = $this->objectManager->get('DERHANSEN\\SfEventMgt\\Domain\\Repository\\CategoryRepository'); $this->importDataSet(__DIR__ . '/../Fixtures/sys_category.xml'); }
/** * @return void */ public function setUp() { $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); parent::setUp(); //this is needed by the TYPO3 core. chdir(PATH_site); }
/** * Sets up this test suite. */ protected function setUp() { parent::setUp(); $this->objectManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class); $this->persistentManager = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager::class); $this->blogRepository = $this->objectManager->get(\ExtbaseTeam\BlogExample\Domain\Repository\BlogRepository::class); }
/** * Sets up this test suite. */ public function setUp() { parent::setUp(); $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->persistentManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager'); $this->blogRepository = $this->objectManager->get('ExtbaseTeam\\BlogExample\\Domain\\Repository\\BlogRepository'); }
/** * Setup * * @throws \TYPO3\CMS\Core\Tests\Exception * @return void */ public function setUp() { parent::setUp(); $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->locationRepository = $this->objectManager->get('DERHANSEN\\SfEventMgt\\Domain\\Repository\\LocationRepository'); $this->importDataSet(__DIR__ . '/../Fixtures/tx_sfeventmgt_domain_model_location.xml'); }
/** * Sets up this test suite. */ public function setUp() { parent::setUp(); $this->setUpBackendUserFromFixture(1); $this->importDataSet(ORIGINAL_ROOT . 'typo3conf/ext/linkhandler/Tests/Functional/Fixtures/base_structure.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3conf/ext/linkhandler/Tests/Functional/Fixtures/tx_news_domain_model_news.xml'); /** @var \TYPO3\CMS\Lang\LanguageService $languageService */ $languageService = $this->getMock('TYPO3\\CMS\\Lang\\LanguageService'); $GLOBALS['LANG'] = $languageService; /** @var \TYPO3\CMS\Core\TimeTracker\TimeTracker $timeTracker */ $timeTracker = $this->getMock('TYPO3\\CMS\\Core\\TimeTracker\\TimeTracker'); $GLOBALS['TT'] = $timeTracker; /** @var \TYPO3\CMS\Frontend\Page\PageRepository $pageRepository */ $pageRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository'); /** @var \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController $typoScriptFrontendController */ $typoScriptFrontendController = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController', $GLOBALS['TYPO3_CONF_VARS'], 1, 0); $this->typoScriptFrontendController = $typoScriptFrontendController; $GLOBALS['TSFE'] = $typoScriptFrontendController; $typoScriptFrontendController->sys_page = $pageRepository; $typoScriptFrontendController->getPageAndRootline(); $typoScriptFrontendController->initTemplate(); $typoScriptFrontendController->getConfigArray(); // This is needed for the configuration manager to load the correct TSconfig. $_GET['P'] = array('pid' => 1); /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObjectRenderer */ $contentObjectRenderer = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer'); $contentObjectRenderer->start(array()); $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); /** @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManager $configurationManager */ $configurationManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager'); $configurationManager->setContentObject($contentObjectRenderer); $this->uriBuilder = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder'); }
public function setUp() { parent::setUp(); $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/core/Tests/Functional/Fixtures/pages.xml'); $this->importDataSet(__DIR__ . '/Fixtures/fixtures.xml'); $this->authCode = md5(302 . '*****@*****.**'); }
public function setUp() { parent::setUp(); $this->importDataSet(__DIR__ . '/Fixtures/Database/pages.xml'); $this->importDataSet(__DIR__ . '/Fixtures/Database/sys_category.xml'); $this->importDataSet(__DIR__ . '/Fixtures/Database/sys_category_record_mm.xml'); $this->setUpFrontendRootPage(1, array('EXT:kesearch_categories/Tests/Functional/Fixtures/Frontend/Basic.ts')); }
protected function setUp() { parent::setUp(); $this->importDataSet(__DIR__ . '/fixtures.xml'); $this->tsFrontendController = $this->getAccessibleMock(TypoScriptFrontendController::class, array('dummy'), array(), '', false); $pageContextMock = $this->getMock(\TYPO3\CMS\Frontend\Page\PageRepository::class); $this->tsFrontendController->_set('sys_page', $pageContextMock); }
/** * Set up for set up the backend user, initialize the language object * and creating the Export instance * * @return void */ protected function setUp() { parent::setUp(); $this->setUpBackendUserFromFixture(1); \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->initializeLanguageObject(); $this->export = GeneralUtility::makeInstance(\TYPO3\CMS\Impexp\Export::class); $this->export->init(0, 'export'); }
public function setUp() { parent::setUp(); $this->mockedViewHelper = $this->getAccessibleMock('GeorgRinger\\News\\ViewHelpers\\SimplePrevNextViewHelper', ['dummy'], [], '', TRUE, TRUE, FALSE); $this->news = new News(); $this->news->setPid(9); $this->importDataSet(__DIR__ . '/../Fixtures/tx_news_domain_model_news.xml'); }
public function setUp() { parent::setUp(); $this->mockedViewHelper = $this->getAccessibleMock('Tx_MooxNews_ViewHelpers_SimplePrevNextViewHelper', array('dummy'), array(), '', TRUE, TRUE, FALSE); $this->news = new \Tx_MooxNews_Domain_Model_News(); $this->news->setPid(9); $this->importDataSet(__DIR__ . '/../Fixtures/tx_mooxnews_domain_model_news.xml'); }
/** * Sets up this test case. */ public function setUp() { parent::setUp(); $this->setUpBackendUserFromFixture(1); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/backend/Tests/Functional/Fixtures/inlinetest.xml'); $GLOBALS['LANG'] = GeneralUtility::makeInstance(LanguageService::class); $GLOBALS['LANG']->init('default'); $this->subject = GeneralUtility::makeInstance(FormEngine::class); }
/** * Setup * * @throws \TYPO3\CMS\Core\Tests\Exception * @return void */ public function setUp() { parent::setUp(); $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->bannerRepository = $this->objectManager->get('DERHANSEN\\SfBanners\\Domain\\Repository\\BannerRepository'); $this->importDataSet(__DIR__ . '/../Fixtures/tx_sfbanners_domain_model_banner.xml'); $this->importDataSet(__DIR__ . '/../Fixtures/tx_sfbanners_domain_model_category.xml'); $this->importDataSet(__DIR__ . '/../Fixtures/pages.xml'); }
/** * Set up tests */ protected function setUp() { $this->testExtensionsToLoad[] = 'typo3conf/ext/realurl/'; parent::setUp(); $GLOBALS['LANG'] = GeneralUtility::makeInstance(\TYPO3\CMS\Lang\LanguageService::class); $GLOBALS['LANG']->init('default'); $this->configuration = GeneralUtility::makeInstance(ConfigurationReader::class, ConfigurationReader::MODE_DECODE); $this->utility = GeneralUtility::makeInstance(RealurlUtility::class, $this->configuration); }
/** * Sets up this test case. * * @return void */ protected function setUp() { parent::setUp(); $this->setUpBackendUserFromFixture(1); Bootstrap::getInstance()->initializeLanguageObject(); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/backend/Tests/Functional/Fixtures/pages.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/core/Tests/Functional/Fixtures/sys_language.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/backend/Tests/Functional/Controller/Page/Fixtures/tt_content-default-language.xml'); $this->subject = new LocalizationController(); }
/** * Set up for set up the backend user, initialize the language object * and creating the ImportExport instance * * @return void */ protected function setUp() { parent::setUp(); $this->setUpBackendUserFromFixture(1); // Needed to avoid PHP Warnings $GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable'] = array(); \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->initializeLanguageObject(); $this->export = GeneralUtility::makeInstance(\TYPO3\CMS\Impexp\ImportExport::class); $this->export->init(0, 'export'); }
/** * Sets up this test case. */ protected function setUp() { parent::setUp(); $this->importDataSet(__DIR__ . '/Fixtures/Xml/fe_users.xml'); $this->importDataSet(__DIR__ . '/Fixtures/Xml/tx_sessions_domain_model_session.xml'); $this->importDataSet(__DIR__ . '/Fixtures/Xml/tx_sessions_session_record_mm.xml'); ExtensionManagementUtility::addTypoScriptSetup(' <INCLUDE_TYPOSCRIPT: source="FILE:EXT:sessions/Configuration/TypoScript/setup.txt"> config.tx_extbase.persistence < plugin.tx_sessions.persistence '); }
/** * Creates the test environment. * */ function setUp() { parent::setUp(); //restore old rootline $this->oldRootline = $GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields']; //clear rootline $GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] = ''; $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['crawler'] = 'a:18:{s:9:"sleepTime";s:4:"1000";s:16:"sleepAfterFinish";s:2:"10";s:11:"countInARun";s:2:"20";s:14:"purgeQueueDays";s:2:"14";s:12:"processLimit";s:1:"9";s:17:"processMaxRunTime";s:3:"300";s:14:"maxCompileUrls";s:5:"10000";s:12:"processDebug";s:1:"0";s:14:"processVerbose";s:1:"0";s:16:"crawlHiddenPages";s:1:"1";s:7:"phpPath";s:16:"/usr/bin/php5 -q";s:14:"enableTimeslot";s:1:"1";s:11:"logFileName";s:0:"";s:16:"frontendBasePath";s:1:"/";s:22:"cleanUpOldQueueEntries";s:1:"1";s:19:"cleanUpProcessedAge";s:1:"2";s:19:"cleanUpScheduledAge";s:1:"7";s:21:"PageUidRootTypoScript";s:1:"1";}'; $this->importDataSet(dirname(__FILE__) . '/data/pages.xml'); $this->importDataSet(dirname(__FILE__) . '/data/sys_template.xml'); }
/** * Sets up this test suite. */ public function setUp() { parent::setUp(); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/core/Tests/Functional/Fixtures/pages.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/blogs.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/posts.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/tags.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/post-tag-mm.xml'); $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->persistentManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager'); $this->postRepository = $this->objectManager->get('ExtbaseTeam\\BlogExample\\Domain\\Repository\\PostRepository'); }
/** * @throws \TYPO3\CMS\Core\Tests\Exception */ public function setUp() { parent::setUp(); $this->setUpBackendUserFromFixture(1); \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->initializeLanguageObject(); $this->importDataSet(__DIR__ . '/Fixtures/Database/be_users.xml'); $this->importDataSet(__DIR__ . '/Fixtures/Database/pages.xml'); $this->importDataSet(__DIR__ . '/Fixtures/Database/tt_content.xml'); $this->importDataSet(__DIR__ . '/Fixtures/Database/sys_category.xml'); $this->importDataSet(__DIR__ . '/Fixtures/Database/sys_category_record_mm.xml'); $this->importDataSet(__DIR__ . '/Fixtures/Database/tx_kesearch_indexerconfig.xml'); }
/** * Sets up this test suite. */ protected function setUp() { parent::setUp(); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/core/Tests/Functional/Fixtures/pages.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/blogs.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/posts.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/tags.xml'); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/post-tag-mm.xml'); $this->objectManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class); $this->blogRepository = $this->objectManager->get(\ExtbaseTeam\BlogExample\Domain\Repository\BlogRepository::class); $this->postRepository = $this->objectManager->get(\ExtbaseTeam\BlogExample\Domain\Repository\PostRepository::class); }