Sokil\Mongo\CollectionTest::testGetStoredDocumentInstanceFromArray PHP Method

testGetStoredDocumentInstanceFromArray() public method

    public function testGetStoredDocumentInstanceFromArray()
    {
        $document = $this->collection->hydrate(array('_id' => new \MongoId()));
        $this->assertTrue($document->isStored());
    }
CollectionTest