/** * @test * @author Christopher Hlubek <*****@*****.**> */ public function updateDocumentWorks() { $response = $this->client->createDocument(array('name' => 'Foo'), 'abc'); $response = $this->client->updateDocument(array('name' => 'Bar', '_rev' => $response->getRevision()), 'abc'); $this->assertTrue($response->isSuccess()); $response = $this->client->getDocument('abc'); $this->assertEquals('Bar', $response->name); }