protected function setUp() { $configurationRegistry = Tx_Oelib_ConfigurationRegistry::getInstance(); $configurationRegistry->set('plugin', new Tx_Oelib_Configuration()); $this->seminarsPluginConfiguration = new Tx_Oelib_Configuration(); $this->seminarsPluginConfiguration->setAsInteger('defaultEventVipsFeGroupID', $this->vipsGroupUid); $configurationRegistry->set('plugin.tx_seminars_pi1', $this->seminarsPluginConfiguration); $this->subject = new Tx_Seminars_Csv_FrontEndRegistrationAccessCheck(); }
/** * @test */ public function sendEventTakesPlaceRemindersForConfirmedEventAndNoTimeFrameConfiguredSendsNoReminder() { $this->createSeminarWithOrganizer(array('begin_date' => $GLOBALS['SIM_EXEC_TIME'] + tx_oelib_Time::SECONDS_PER_DAY, 'cancelled' => tx_seminars_seminar::STATUS_CONFIRMED)); $this->configuration->setAsInteger('sendEventTakesPlaceReminderDaysBeforeBeginDate', 0); $this->fixture->sendEventTakesPlaceReminders(); self::assertNull($this->mailer->getFirstSentEmail()); }