Esempio n. 1
0
 /**
  * testing showPerDiem action.
  */
 public function testShowPerDiemAction()
 {
     // Existing per diem
     $crawler = $this->client->request('POST', '/secured/travel/admin/show/perdiem/' . $this->perDiem->getId());
     $this->assertTrue($this->client->getResponse()->headers->contains('Content-Type', 'text/html; charset=UTF-8'), 'testShowPerDiemAction: The content-type is not html.');
     // New per diem
     $crawler = $this->client->request('POST', '/secured/travel/admin/show/perdiem/new');
     $this->assertTrue($this->client->getResponse()->headers->contains('Content-Type', 'text/html; charset=UTF-8'), 'testShowPerDiemAction: The content-type is not html.');
 }