Sokil\Mongo\CollectionTest::testGetOptions PHP Method

testGetOptions() public method

public testGetOptions ( )
    public function testGetOptions()
    {
        // define array of collections
        $this->database->map(array('collection1' => array('someOption' => 'someValue')));
        $options = $this->database->getCollection('collection1')->getOptions();
        $this->assertArrayHasKey('someOption', $options);
        $this->assertEquals($options['someOption'], 'someValue');
    }
CollectionTest