/** * @covers Paradox\Client::load */ public function testLoad() { $document = $this->client->dispense($this->collectionName); $id = $this->client->store($document); $this->assertNotNull($id, "The id of a saved document should not be null"); $result = $this->client->load($this->collectionName, $id); $this->assertEquals($document->getId(), $result->getId(), "The retrieved document should have the same id to the one that was stored"); }