Example #1
0
 public function provideIsValidTestData()
 {
     $app1 = new Application();
     $app2 = new Application();
     $app3 = new Application();
     $app4 = new Application();
     $contact = new Contact();
     $contact->setEmail('*****@*****.**');
     $app1->setContact(new Contact());
     $app2->setContact($contact);
     $app3->setContact(new Contact());
     $app3->getAttributes()->setAcceptedPrivacyPolicy(true);
     $app4->setContact($contact);
     $app4->getAttributes()->setAcceptedPrivacyPolicy(true);
     return array(array($app1, false, 'NO_EMAIL,NO_ACCEPT_PP'), array($app2, false, 'NO_ACCEPT_PP'), array($app3, false, 'NO_EMAIL'), array($app4, true));
 }
 /**
  * Send Carbon Copy to the User
  */
 protected function sendCarbonCopyToCandidate()
 {
     if ($this->application->getAttributes()->getSendCarbonCopy()) {
         $this->mailService->send('Applications/CarbonCopy', ['application' => $this->application]);
     }
 }
Example #3
0
 public function testGetAttributesWithoutAttributes()
 {
     $this->assertEquals(new Attributes(), $this->target->getAttributes());
 }