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

testCreateIndexesWithIgnoredOptions() public method

    public function testCreateIndexesWithIgnoredOptions($option)
    {
        $this->getCollection()->createIndex(['foo' => 1]);
        $expected = ['createdCollectionAutomatically' => false, 'numIndexesBefore' => 2, 'numIndexesAfter' => 2, 'note' => 'all indexes already exist', 'ok' => 1.0];
        $this->assertSame($expected, $this->getCollection()->createIndex(['foo' => 1], [$option => true]));
    }
MongoCollectionTest