Sokil\Mongo\CollectionTest::testDeleteIndex PHP Method

testDeleteIndex() public method

public testDeleteIndex ( )
    public function testDeleteIndex()
    {
        $this->collection->ensureIndex(array('asc' => 1, 'desc' => -1));
        $this->collection->deleteIndex(array('asc' => 1, 'desc' => -1));
        $indexes = $this->collection->getIndexes();
        $this->assertEquals(1, count($indexes));
    }
CollectionTest