summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php')
-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);