/** * @test */ public function registrationHasStartedForEventWithRegistrationBeginInFutureReturnsFalse() { $this->seminar->setRegistrationBeginDate($GLOBALS['SIM_EXEC_TIME'] + 42); self::assertFalse($this->fixture->registrationHasStarted($this->seminar)); }
/** * @test */ public function getVacanciesClassesForEventWithoutDateAndWithUnlimitedVacanciesDoesNotReturnDeadlineOverClass() { $event = new tx_seminars_seminarchild($this->seminarUid); $event->setUnlimitedVacancies(); $event->setNumberOfAttendances(0); $this->fixture->getConfigGetter()->setConfigurationValue('allowRegistrationForEventsWithoutDate', 1); $output = $this->fixture->getVacanciesClasses($event); self::assertNotContains($this->fixture->pi_getClassName('registration-deadline-over'), $output); }
/** * @test */ public function isPublishedForEventWithPublicationHashIsFalse() { $this->fixture->setPublicationHash('5318761asdf35as5sad35asd35asd'); self::assertFalse($this->fixture->isPublished()); }