mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Add test on allow header
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user