/**
  * @test
  */
 public function notifyAttendeeForInformalSalutationAndQueueUpdateContainsInformalQueueUpdateText()
 {
     $this->fixture->setConfigurationValue('sendConfirmationOnQueueUpdate', TRUE);
     $this->fixture->setConfigurationValue('salutation', 'informal');
     $registration = $this->createRegistration();
     $this->testingFramework->changeRecord('fe_users', $registration->getFrontEndUser()->getUid(), array('email' => '*****@*****.**'));
     $pi1 = new tx_seminars_FrontEnd_DefaultController();
     $pi1->init();
     $this->fixture->notifyAttendee($registration, $pi1, 'confirmationOnQueueUpdate');
     self::assertContains(sprintf($this->fixture->translate('email_confirmationOnQueueUpdateHello_informal'), $this->seminar->getTitle()), $this->mailer->getFirstSentEmail()->getBody());
 }
Exemple #2
0
 /**
  * @test
  */
 public function dumpSeminarValuesForTitleAndDescriptionGivenReturnsTitleAndDescription()
 {
     $this->fixture->setDescription('foo bar');
     self::assertRegexp('/.*' . $this->fixture->getTitle() . '.*\\n.*' . $this->fixture->getRecordPropertyString('description') . '/', $this->fixture->dumpSeminarValues('title,description'));
 }