summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-03-10 13:43:18 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-03-27 12:53:44 +0100
commit102a328e65518a730691a52fa9c1c76617371cac (patch)
tree0b66a98d46871200f580bfce9e182b394f04135b /apps/dav/tests/unit/CalDAV
parent52ba75f6442ad326f5113cd3e89c4024118c4fcf (diff)
downloadnextcloud-server-102a328e65518a730691a52fa9c1c76617371cac.tar.gz
nextcloud-server-102a328e65518a730691a52fa9c1c76617371cac.zip
Fix usage of Sabre\HTTP\Request in unit tests
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/tests/unit/CalDAV')
-rw-r--r--apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php b/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php
index cf62b6eb05d..f7972d37d43 100644
--- a/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php
+++ b/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php
@@ -82,9 +82,8 @@ class PluginTest extends TestCase {
$this->book->expects($this->once())->method('setPublishStatus')->with(true);
// setup request
- $request = new Request();
+ $request = new Request('POST', 'cal1');
$request->addHeader('Content-Type', 'application/xml');
- $request->setUrl('cal1');
$request->setBody('<o:publish-calendar xmlns:o="http://calendarserver.org/ns/"/>');
$response = new Response();
$this->plugin->httpPost($request, $response);
@@ -95,9 +94,8 @@ class PluginTest extends TestCase {
$this->book->expects($this->once())->method('setPublishStatus')->with(false);
// setup request
- $request = new Request();
+ $request = new Request('POST', 'cal1');
$request->addHeader('Content-Type', 'application/xml');
- $request->setUrl('cal1');
$request->setBody('<o:unpublish-calendar xmlns:o="http://calendarserver.org/ns/"/>');
$response = new Response();
$this->plugin->httpPost($request, $response);