/**
  * @test
  */
 public function notifyAttendeeForInformalSalutationAndQueueUpdateNotContainsRawTemplateMarkers()
 {
     $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');
     $this->assertNotContainsRawLabelKey($this->mailer->getFirstSentEmail()->getBody());
 }
 /**
  * @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());
 }