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

testGetOptions() public method

public testGetOptions ( )
    public function testGetOptions()
    {
        $this->matchRequestResult = array('allowedMethods' => 'GET,POST,DELETE');
        self::assertEquals(array('allow_methods' => array('GET', 'POST', 'DELETE')), $this->getProvider()->getOptions($this->createRequest()));
    }