/**
  * 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');
 }
예제 #2
0
 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');
 }
예제 #3
0
 /**
  * Set up
  */
 protected function setUp()
 {
     parent::setUp();
     $this->setUpBackendUserFromFixture(1);
     \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->initializeLanguageObject();
     $this->importDataSet(__DIR__ . '/../Fixtures/sys_workspace.xml');
 }
예제 #4
0
 /**
  * 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');
 }
 public function setUp()
 {
     parent::setUp();
     $this->importDataSet(__DIR__ . '/../Fixtures/pages.xml');
     $this->importDataSet(__DIR__ . '/../Fixtures/news.xml');
     $this->importDataSet(__DIR__ . '/../Fixtures/events.xml');
 }
 /**
  * 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');
 }
 /**
  * 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) {
     }
 }
예제 #8
0
 protected function setUp()
 {
     parent::setUp();
     $this->importDataSet(__DIR__ . '/../Fixtures/pages.xml');
     $this->pageRepo = new PageRepository();
     $this->pageRepo->init(false);
 }
예제 #9
0
 /**
  * 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);
 }
예제 #10
0
 /**
  * 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');
 }
예제 #11
0
 /**
  * @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);
 }
 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();
     $GLOBALS['LANG'] = GeneralUtility::makeInstance('TYPO3\\CMS\\Lang\\LanguageService');
     $GLOBALS['LANG']->init('default');
     $this->packageManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Package\\PackageManager');
 }
 public function setUp()
 {
     parent::setUp();
     $this->objectManager = GeneralUtility::makeInstance(ObjectManager::class);
     $this->queue = $this->objectManager->get(DatabaseQueue::class, self::QUEUE_NAME, ['timeout' => 0]);
     $this->setUpBasicFrontendEnvironment();
 }
예제 #15
0
 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');
 }
 /**
  *
  */
 public function setUp()
 {
     $this->testExtensionsToLoad = array('typo3conf/ext/aoe_ipauth');
     parent::setUp();
     /** @var $this->objectManager \TYPO3\CMS\Extbase\Object\ObjectManager */
     $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->fixture = $this->objectManager->get('AOE\\AoeIpauth\\Hooks\\Staticfilecache');
 }
 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');
 }
예제 #18
0
 public function setUp()
 {
     parent::setUp();
     $this->objectManager = GeneralUtility::makeInstance(ObjectManager::class);
     $this->subject = $this->objectManager->get(ImportService::class);
     $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/core/Tests/Functional/Fixtures/pages.xml');
     // $this->setUpBasicFrontendEnvironment();
 }
 /**
  * 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');
 }
 /**
  * SetUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->importDataSet(__DIR__ . '/Fixtures/tx_schedulertimeline_domain_model_log.xml');
     $this->importDataSet(__DIR__ . '/Fixtures/tx_scheduler_task.xml');
     $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->logRepository = $this->objectManager->get('AOE\\SchedulerTimeline\\Domain\\Repository\\LogRepository');
 }
 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->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);
 }
 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 . '*****@*****.**');
 }
예제 #25
0
 /**
  *
  */
 public function setUp()
 {
     $this->testExtensionsToLoad = array('typo3conf/ext/aoe_ipauth');
     parent::setUp();
     $stubFixture = $this->getMock('AOE\\AoeIpauth\\Hooks\\Tcemain', array('addFlashMessage'));
     $stubFixture->expects($this->any())->method('addFlashMessage')->will($this->returnValue(NULL));
     $this->fixture = $stubFixture;
 }
예제 #26
0
 /**
  * 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);
 }
예제 #27
0
 /**
  * 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);
 }
 /**
  *
  */
 public function setUp()
 {
     $this->testExtensionsToLoad = array('typo3conf/ext/aoe_ipauth');
     parent::setUp();
     $this->fixturePath = __DIR__ . '/Fixtures/';
     /** @var $this->objectManager \TYPO3\CMS\Extbase\Object\ObjectManager */
     $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->fixture = $this->objectManager->get('AOE\\AoeIpauth\\Domain\\Service\\FeEntityService');
 }
예제 #29
0
 /**
  * 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');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->backendUser = $this->setUpBackendUserFromFixture(self::VALUE_BackendUserId);
     // By default make tests on live workspace
     $this->backendUser->workspace = 0;
     $this->actionService = $this->getActionService();
     \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->initializeLanguageObject();
 }