/** * @covers Paradox\pod\Document::loadFromDriver */ public function testLoadFromDriver() { $driverDocument = new \triagens\ArangoDb\Document(); $driverDocument->setInternalId('mycollection/123456'); $driverDocument->setRevision('myrevision'); $driverDocument->set('mykey', 'myvalue'); $this->document->loadFromDriver($driverDocument); $this->assertEquals('mycollection/123456', $this->document->getId(), "The id does not match"); $this->assertEquals('myrevision', $this->document->getRevision(), "The revision does not match"); $this->assertEquals('myvalue', $this->document->get('mykey'), 'The value for "mykey" does not match'); }