Add test on allow header

This commit is contained in:
Romain Neutron
2012-10-03 15:14:01 +02:00
parent d7bd6e80f0
commit e2331eb393

View File

@@ -2036,6 +2036,7 @@ abstract class ApiAbstract extends \PhraseanetWebTestCaseAbstract
foreach ($methods as $method) {
$crawler = self::$DI['client']->request($method, $route, $this->getParameters(), array(), array('HTTP_Accept' => $this->getAcceptMimeType()));
$content = $this->unserialize(self::$DI['client']->getResponse()->getContent());
$this->assertTrue(self::$DI['client']->getResponse()->headers->has('Allow'));
$this->evaluateResponseMethodNotAllowed(self::$DI['client']->getResponse());
$this->evaluateMetaMethodNotAllowed($content);
}