Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testDeleteIndexUsingKeys PHP Method

testDeleteIndexUsingKeys() public method

    public function testDeleteIndexUsingKeys()
    {
        $newCollection = $this->getCheckDatabase()->selectCollection('test');
        $newCollection->createIndex(['bar' => 1]);
        $expected = ['nIndexesWas' => 2, 'ok' => 1.0];
        $this->assertSame($expected, $this->getcollection()->deleteIndex(['bar' => 1]));
        $this->assertCount(1, iterator_to_array($newCollection->listIndexes()));
    }
MongoCollectionTest