/** * @test * @author Christopher Hlubek <*****@*****.**> */ public function deleteDocumentWorks() { $response = $this->client->createDocument(array('name' => 'Foo'), 'abc'); $response = $this->client->deleteDocument('abc', $response->getRevision()); $this->assertTrue($response); try { $response = $this->client->getDocument('abc'); $this->fail('Deleted document should not be found'); } catch (\TYPO3\CouchDB\Client\NotFoundException $e) { } }