Example #1
0
 protected function setUp()
 {
     $this->testingFramework = new Tx_Oelib_TestingFramework('tx_seminars');
     $this->testingFramework->createFakeFrontEnd();
     tx_oelib_MapperRegistry::getInstance()->activateTestingMode($this->testingFramework);
     tx_oelib_configurationProxy::getInstance('seminars')->setAsBoolean('useStoragePid', FALSE);
     $this->configuration = new tx_oelib_Configuration();
     $this->configuration->setAsInteger('createAuxiliaryRecordsPID', 0);
     tx_oelib_ConfigurationRegistry::getInstance()->set('plugin.tx_seminars_pi1', $this->configuration);
     $this->fixture = new tx_seminars_FrontEnd_EventEditor(array('templateFile' => 'EXT:seminars/Resources/Private/Templates/FrontEnd/FrontEnd.html', 'form.' => array('eventEditor.' => array())), $GLOBALS['TSFE']->cObj);
     $this->fixture->setTestMode();
     /** @var Tx_Oelib_MailerFactory $mailerFactory */
     $mailerFactory = t3lib_div::makeInstance('Tx_Oelib_MailerFactory');
     $mailerFactory->enableTestMode();
     $this->mailer = $mailerFactory->getMailer();
 }