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

testCreateIndexTwiceWithDifferentOrder() public method

    public function testCreateIndexTwiceWithDifferentOrder()
    {
        $this->getCollection()->createIndex(['foo' => 1, 'bar' => 1]);
        $expected = ['createdCollectionAutomatically' => false, 'numIndexesBefore' => 2, 'numIndexesAfter' => 3, 'ok' => 1.0];
        $this->assertSame($expected, $this->getCollection()->createIndex(['bar' => 1, 'foo' => 1]));
    }
MongoCollectionTest