Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function doLoad(ObjectManager $manager)
 {
     // init the encoder factory
     $job1 = new JobTitle();
     $job1->setTitle('Junior PHP Developer')->setDescription('Candidates have got less than 2 years PHP experince.');
     $manager->persist($job1);
     $job2 = new JobTitle();
     $job2->setTitle('Junior .NET Developer')->setDescription('Candidates have got less than 2 years .NET experince.');
     $manager->persist($job2);
     $job3 = new JobTitle();
     $job3->setTitle('Senior PHP Developer')->setDescription('Developers who have more than 3 years PHP experince.');
     $manager->persist($job3);
     $job4 = new JobTitle();
     $job4->setTitle('Senior .NET Developer')->setDescription('Developers who have more than 3 years .NET experince.');
     $manager->persist($job4);
     $job5 = new JobTitle();
     $job5->setTitle('Software Architect')->setDescription('A computer manager who makes high-level design choices, including tools and platforms');
     $manager->persist($job5);
     $job6 = new JobTitle();
     $job6->setTitle('Business Analyst')->setDescription('Who analzyes the existing or ideal organization and design of systems.');
     $manager->persist($job6);
     $job7 = new JobTitle();
     $job7->setTitle('System administrator')->setDescription('Sysadmin who is responsible for the upkeep and configuration of computer systems.');
     $manager->persist($job7);
     $job8 = new JobTitle();
     $job8->setTitle('CEO')->setDescription('Chief Executive Officer is the highest-ranking corporate officer in charge of total management of an organization.');
     $manager->persist($job8);
     $manager->flush();
 }
Esempio n. 2
0
 /**
  * testing addJobTitle action.
  */
 public function testAddJobTitleAction()
 {
     $crawler = $this->client->request('GET', '/secured/admin/add/jobtitle/' . $this->jobTitle->getId());
     $this->assertJson($this->client->getResponse()->getContent(), 'testAddJobTitleAction: The response\'s content is not a JSON object.');
     $this->assertTrue($this->client->getResponse()->headers->contains('Content-Type', 'application/json'), 'testAddJobTitleAction: The content-type is not a json.');
 }