/** * @test */ public function allowsRegistrationBySeatsForEventWithUnlimitedVacanciesReturnsTrue() { $this->seminar->setUnlimitedVacancies(); self::assertTrue($this->fixture->allowsRegistrationBySeats($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 dumpSeminarValuesForEventWithUnlimitedVacanciesAndVacanciesGivenReturnsVacanciesUnlimitedString() { $this->fixture->setUnlimitedVacancies(); self::assertSame($this->fixture->translate('label_vacancies') . ': ' . $this->fixture->translate('label_unlimited') . LF, $this->fixture->dumpSeminarValues('vacancies')); }