Doctrine\Tests\CouchDB\HTTP\SocketClientTestCase::testDeleteUnknownDocumentFromDatabase PHP Метод

testDeleteUnknownDocumentFromDatabase() публичный Метод

    public function testDeleteUnknownDocumentFromDatabase()
    {
        $db = new HTTP\SocketClient();
        $db->request('PUT', '/' . $this->getTestDatabase());
        $response = $db->request('DELETE', '/' . $this->getTestDatabase() . '/not_existant');
        $this->assertTrue($response instanceof HTTP\ErrorResponse);
        $this->assertSame(404, $response->status);
        $this->assertSame(array('error' => 'not_found', 'reason' => 'missing'), $response->body);
    }