Example #1
0
 protected function tearDown()
 {
     $this->testingFramework->cleanUp();
     tx_seminars_registrationmanager::purgeInstance();
     if (t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) < 4007000) {
         $GLOBALS['TYPO3_CONF_VARS']['BE'] = $this->backEndConfigurationBackup;
     }
 }
 protected function tearDown()
 {
     $this->testingFramework->cleanUp();
     tx_seminars_registrationmanager::purgeInstance();
     $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'] = $this->extConfBackup;
     $GLOBALS['T3_VAR']['getUserObj'] = $this->t3VarBackup;
 }
Example #3
0
 protected function tearDown()
 {
     $this->testingFramework->cleanUp();
     tx_seminars_registrationmanager::purgeInstance();
 }
 /**
  * @test
  */
 public function sendAdditionalNotificationForEventWithZeroAttendeesMinDoesNotSendAnyMail()
 {
     $this->testingFramework->changeRecord('tx_seminars_seminars', $this->seminarUid, array('attendees_min' => 0, 'attendees_max' => 42));
     unset($this->fixture);
     tx_seminars_registrationmanager::purgeInstance();
     $this->fixture = tx_seminars_registrationmanager::getInstance();
     $this->fixture->setConfigurationValue('templateFile', 'EXT:seminars/Resources/Private/Templates/Mail/e-mail.html');
     $registration = $this->createRegistration();
     $this->fixture->sendAdditionalNotification($registration);
     self::assertNull($this->mailer->getFirstSentEmail());
 }