Exemplo n.º 1
0
 public function testSetGetContactEmailWithUser()
 {
     $input = "*****@*****.**";
     $info = new Info();
     $info->setEmail($input);
     $user = new User();
     $user->setInfo($info);
     $this->target->setUser($user);
     $this->assertEquals($this->target->getContactEmail(), $input);
 }
 /**
  * assign the form-elements to the template
  * @param \Jobs\Entity\Job $job
  * @return $this
  */
 protected function extract($job)
 {
     $this->job = $job;
     $this->setApplyData();
     $this->setOrganizationInfo();
     $this->setLocation();
     $this->setDescription();
     $this->setTemplate();
     $this->setTemplateDefaultValues();
     $this->container['descriptionEditable'] = $job->getTemplateValues()->getDescription();
     $this->container['benefits'] = $job->getTemplateValues()->getBenefits();
     $this->container['requirements'] = $job->getTemplateValues()->getRequirements();
     $this->container['qualifications'] = $job->getTemplateValues()->getQualifications();
     $this->container['title'] = $job->getTemplateValues()->getTitle();
     $this->container['headTitle'] = strip_tags($job->getTemplateValues()->getTitle());
     $this->container['uriApply'] = $this->container['applyData']['uri'];
     $this->container['contactEmail'] = strip_tags($job->getContactEmail());
     return $this;
 }