Beispiel #1
0
 /**
  * @test
  */
 public function canSomebodyRegisterMessageForEventWithoutDateAndRegistrationWithoutDateActivatedReturnsEmptyString()
 {
     // Activates the configuration switch "canRegisterForEventsWithoutDate".
     $this->fixture->setAllowRegistrationForEventsWithoutDate(1);
     $this->fixture->setBeginDate(0);
     $this->fixture->setRegistrationDeadline(0);
     self::assertSame('', $this->fixture->canSomebodyRegisterMessage());
 }
 /**
  * @test
  */
 public function allowsRegistrationByDateForEventWithoutDateAndRegistrationForEventsWithoutDateNotAllowedReturnsFalse()
 {
     $this->seminar->setAllowRegistrationForEventsWithoutDate(0);
     $this->seminar->setBeginDate(0);
     self::assertFalse($this->fixture->allowsRegistrationByDate($this->seminar));
 }