Example #1
0
 /**
  * @expectedException \Drest\Route\NoMatchException
  */
 public function testAllowOptionsSetToFalse()
 {
     $config = new Configuration();
     $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $config->addPathsToConfigFiles(array(__DIR__ . '/../../Entities'));
     $config->setDebugMode(true);
     $config->setAllowOptionsRequest(false);
     $dm = $this->_getDrestManager(null, $config);
     $request = \Symfony\Component\HttpFoundation\Request::create('/user/1', 'OPTIONS');
     $dm->dispatch($request);
 }