summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/DAV
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-03-30 09:34:25 +0200
committerGitHub <noreply@github.com>2020-03-30 09:34:25 +0200
commit2200cc85629f449dc8cb747cd6aa0049a3cdab6d (patch)
treeaea025990e7f9e684f7ab7a7a4bdbdf90d262cf1 /apps/dav/tests/unit/DAV
parent9e8ac1d24a5cd5f41c0b160d79be49195d4bf8b9 (diff)
parent55081b7fd29b58600d5e0d13ed678de902098e4f (diff)
downloadnextcloud-server-2200cc85629f449dc8cb747cd6aa0049a3cdab6d.tar.gz
nextcloud-server-2200cc85629f449dc8cb747cd6aa0049a3cdab6d.zip
Merge pull request #19325 from nextcloud/dependachristoph/composer/sabre-4.0
Update Sabre (and friends) to 4.0
Diffstat (limited to 'apps/dav/tests/unit/DAV')
-rw-r--r--apps/dav/tests/unit/DAV/Sharing/PluginTest.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php
index 9eeaccc29d7..9776d17642c 100644
--- a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php
+++ b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php
@@ -47,7 +47,7 @@ class PluginTest extends TestCase {
protected function setUp(): void {
parent::setUp();
-
+
/** @var Auth | \PHPUnit_Framework_MockObject_MockObject $authBackend */
$authBackend = $this->getMockBuilder(Auth::class)->disableOriginalConstructor()->getMock();
$authBackend->method('isDavAuthenticated')->willReturn(true);
@@ -77,9 +77,8 @@ class PluginTest extends TestCase {
]], ['mailto:wilfredo@example.com']);
// setup request
- $request = new Request();
+ $request = new Request('POST', 'addressbook1.vcf');
$request->addHeader('Content-Type', 'application/xml');
- $request->setUrl('addressbook1.vcf');
$request->setBody('<?xml version="1.0" encoding="utf-8" ?><CS:share xmlns:D="DAV:" xmlns:CS="http://owncloud.org/ns"><CS:set><D:href>principal:principals/admin</D:href><CS:read-write/></CS:set> <CS:remove><D:href>mailto:wilfredo@example.com</D:href></CS:remove></CS:share>');
$response = new Response();
$this->plugin->httpPost($request, $response);