Пример #1
0
 /**
  * @test
  */
 public function notifyAttendeeForFormalSalutationAndGenderFemaleNotContainsRawTemplateMarkers()
 {
     if (!Tx_Oelib_Model_FrontEndUser::hasGenderField()) {
         self::markTestSkipped('This test is only applicable if there is a FrontEndUser.gender field.');
     }
     $this->fixture->setConfigurationValue('sendConfirmation', TRUE);
     tx_oelib_ConfigurationRegistry::get('plugin.tx_seminars')->setAsString('salutation', 'formal');
     $registration = $this->createRegistration();
     $this->testingFramework->changeRecord('fe_users', $registration->getFrontEndUser()->getUid(), array('email' => '*****@*****.**', 'gender' => 1));
     $pi1 = new tx_seminars_FrontEnd_DefaultController();
     $pi1->init();
     $this->fixture->notifyAttendee($registration, $pi1);
     $this->assertNotContainsRawLabelKey($this->mailer->getFirstSentEmail()->getBody());
 }
Пример #2
0
 /**
  * Checks whether the FrontEndUser.gender fields exists and  marks the test as skipped if that extension is not installed.
  *
  * @return void
  */
 protected function skipWithoutGenderField()
 {
     if (!Tx_Oelib_Model_FrontEndUser::hasGenderField()) {
         self::markTestSkipped('This test is skipped because it requires FE user to have a gender field, e.g., ' . 'from the sr_feuser_register extension.');
     }
 }
Пример #3
0
 /**
  * @test
  */
 public function setJobTitleSetsJobTitle()
 {
     $this->subject->setJobTitle('foo bar');
     self::assertSame('foo bar', $this->subject->getJobTitle());
 }