eZ\Bundle\EzPublishRestBundle\Tests\CorsOptions\RestProviderTest::testGetOptionsMethodNotAllowed PHP Method

testGetOptionsMethodNotAllowed() public method

    public function testGetOptionsMethodNotAllowed()
    {
        $this->matchRequestResult = new MethodNotAllowedException(array('OPTIONS'));
        self::assertEquals(array('allow_methods' => array()), $this->getProvider()->getOptions($this->createRequest()));
    }