Exemplo n.º 1
0
 /**
  * @test
  */
 public function renderWithTimeSpanWithBeginAndEndDateOnDifferentDaysWithAbbreviateDateRangeFalseReturnsBothFullDatesSeparatedBySpecifiedDash()
 {
     $this->configuration->setAsBoolean('abbreviateDateRanges', FALSE);
     $dash = '#DASH#';
     $timeSpan = new tx_seminars_tests_fixtures_TestingTimeSpan();
     $timeSpan->setBeginDateAsUnixTimeStamp(self::BEGIN_DATE);
     $endDate = self::BEGIN_DATE + 2 * 86400;
     $timeSpan->setEndDateAsUnixTimeStamp($endDate);
     self::assertEquals(strftime(self::DATE_FORMAT_YMD, self::BEGIN_DATE) . $dash . strftime(self::DATE_FORMAT_YMD, $endDate), $this->fixture->render($timeSpan, $dash));
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function sendAdditionalNotificationEmailToReviewerHasEventDateInBody()
 {
     $beginDate = mktime(10, 0, 0, 4, 2, 1975);
     $this->fixture->setSavedFormValue('begin_date', $beginDate);
     $this->configuration->setAsBoolean('sendAdditionalNotificationEmailInFrontEndEditor', TRUE);
     $this->fixture->setConfigurationValue('dateFormatYMD', '%d.%m.%Y');
     $this->createAndLoginUserWithReviewer();
     $this->fixture->sendAdditionalNotificationEmailToReviewer();
     self::assertNotNull($this->mailer->getFirstSentEmail());
     self::assertContains('02.04.1975', $this->mailer->getFirstSentEmail()->getBody());
 }