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

testInsertEmptyObject() public method

    public function testInsertEmptyObject()
    {
        $document = (object) [];
        $this->getCollection()->insert($document);
        $this->assertSame(1, $this->getCollection()->count());
    }
MongoCollectionTest