Exemple #1
0
 /**
  * @test
  */
 public function getRegistrationBeginForEventWithRegistrationBeginReturnsFormattedRegistrationBegin()
 {
     $this->fixture->setConfigurationValue('dateFormatYMD', '%d.%m.%Y');
     $this->fixture->setConfigurationValue('timeFormat', '%H:%M');
     $this->fixture->setRegistrationBeginDate($GLOBALS['SIM_EXEC_TIME']);
     self::assertSame(strftime('%d.%m.%Y %H:%M', $GLOBALS['SIM_EXEC_TIME']), $this->fixture->getRegistrationBegin());
 }
 /**
  * @test
  */
 public function registrationHasStartedForEventWithRegistrationBeginInFutureReturnsFalse()
 {
     $this->seminar->setRegistrationBeginDate($GLOBALS['SIM_EXEC_TIME'] + 42);
     self::assertFalse($this->fixture->registrationHasStarted($this->seminar));
 }