public function testCreateThroughMongoDB($expected, $document_or_id) { $ref = $this->getDatabase()->createDBRef('test', $document_or_id); $this->assertEquals($expected, $ref); }