aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/CalDAV/SharingPluginTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/CalDAV/SharingPluginTest.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/CalDAV/SharingPluginTest.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/CalDAV/SharingPluginTest.php b/vendor/sabre/dav/tests/Sabre/CalDAV/SharingPluginTest.php
index f11af8b95..45c389cc2 100644
--- a/vendor/sabre/dav/tests/Sabre/CalDAV/SharingPluginTest.php
+++ b/vendor/sabre/dav/tests/Sabre/CalDAV/SharingPluginTest.php
@@ -6,17 +6,16 @@ namespace Sabre\CalDAV;
use Sabre\DAV;
use Sabre\DAV\Xml\Element\Sharee;
-use Sabre\DAVServerTest;
use Sabre\HTTP;
-class SharingPluginTest extends DAVServerTest
+class SharingPluginTest extends \Sabre\DAVServerTest
{
protected $setupCalDAV = true;
protected $setupCalDAVSharing = true;
protected $setupACL = true;
protected $autoLogin = 'user1';
- public function setup(): void
+ public function setUp()
{
$this->caldavCalendars = [
[
@@ -52,9 +51,11 @@ class SharingPluginTest extends DAVServerTest
);
}
+ /**
+ * @expectedException \LogicException
+ */
public function testSetupWithoutCoreSharingPlugin()
{
- $this->expectException('LogicException');
$server = new DAV\Server();
$server->addPlugin(
new SharingPlugin()
@@ -179,7 +180,7 @@ RRR;
$request->setBody($xml);
- $this->request($request, 200);
+ $response = $this->request($request, 200);
$this->assertEquals(
[
@@ -229,7 +230,7 @@ RRR;
$request->setBody($xml);
- $this->request($request, 403);
+ $response = $this->request($request, 403);
}
public function testInviteReply()
@@ -288,7 +289,7 @@ RRR;
// If the plugin did not handle this request, it must ensure that the
// body is still accessible by other plugins.
- $this->assertEquals($xml, $request->getBody());
+ $this->assertEquals($xml, $request->getBody(true));
}
public function testPostWithoutContentType()