Sokil\Mongo\DocumentTest::testDefineId_AsStringThatCanBeMongoIdClass PHP Method

testDefineId_AsStringThatCanBeMongoIdClass() public method

    public function testDefineId_AsStringThatCanBeMongoIdClass()
    {
        $id = '541073e62de5725a2a8b4567';
        $document = $this->collection->createDocument()->defineId($id);
        $this->assertEquals($id, (string) $document->getId());
    }
DocumentTest