/** * @covers Paradox\pod\Document::resetMeta */ public function testResetMeta() { $this->document->setId('mycollection/123456'); $this->document->setRevision('myrevision'); $this->document->set('mykey', 'myvalue'); $this->document->resetMeta(); //Reset the data $this->assertNull($this->document->getId(), "The converted document's id should be null"); $this->assertNull($this->document->getKey(), "The converted document's key should be null"); $this->assertNull($this->document->getRevision(), "The converted document's revision should be null"); $this->assertEquals('myvalue', $this->document->get('mykey'), "The converted document's data does not match"); }