Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testSaveEmptyObject PHP Méthode

testSaveEmptyObject() public méthode

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