summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-04-25 18:20:32 +0200
committerGeorg Ehrke <developer@georgehrke.com>2017-04-25 18:20:32 +0200
commitc76633bb8aabff7f160d1b5cd0b7f2a259d009a7 (patch)
tree5ab26ede6851538bda66d09915cd343e722f3f37 /apps/dav/tests/unit/CalDAV
parentac3cc5211b4b3b5671afa2feefab15303270e25f (diff)
downloadnextcloud-server-c76633bb8aabff7f160d1b5cd0b7f2a259d009a7.tar.gz
nextcloud-server-c76633bb8aabff7f160d1b5cd0b7f2a259d009a7.zip
require at least one param or prop filter element
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/tests/unit/CalDAV')
-rw-r--r--apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php b/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php
index 15c776db07f..20bac8aa9f5 100644
--- a/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php
+++ b/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php
@@ -202,6 +202,10 @@ XML;
$result = $this->parse($xml);
}
+ /**
+ * @expectedException \Sabre\DAV\Exception\BadRequest
+ * @expectedExceptionMessage At least one{http://nextcloud.com/ns}prop-filter or {http://nextcloud.com/ns}param-filter is required for this request
+ */
public function testCompOnly() {
$xml = <<<XML
<?xml version="1.0" encoding="UTF-8"?>