aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAVACL/PluginUpdatePropertiesTest.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-10 12:49:51 +0000
committerMario <mario@mariovavti.com>2019-11-10 14:10:03 +0100
commit580c3f4ffe9608d2beb56d418c68b3b112420e76 (patch)
tree82335d01179ac361d3f547a4b8e8c598d302e9f3 /vendor/sabre/dav/tests/Sabre/DAVACL/PluginUpdatePropertiesTest.php
parentd22766f458a8539a40a57f3946459a9be1f21cd6 (diff)
downloadvolse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.tar.gz
volse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.tar.bz2
volse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.zip
another bulk of composer updates
(cherry picked from commit 6685381fd8db507493c3d7c1793f8c05c681bbce)
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/DAVACL/PluginUpdatePropertiesTest.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/DAVACL/PluginUpdatePropertiesTest.php37
1 files changed, 17 insertions, 20 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/DAVACL/PluginUpdatePropertiesTest.php b/vendor/sabre/dav/tests/Sabre/DAVACL/PluginUpdatePropertiesTest.php
index 0147e6a61..169629a03 100644
--- a/vendor/sabre/dav/tests/Sabre/DAVACL/PluginUpdatePropertiesTest.php
+++ b/vendor/sabre/dav/tests/Sabre/DAVACL/PluginUpdatePropertiesTest.php
@@ -1,13 +1,15 @@
<?php
+declare(strict_types=1);
+
namespace Sabre\DAVACL;
use Sabre\DAV;
-class PluginUpdatePropertiesTest extends \PHPUnit_Framework_TestCase {
-
- function testUpdatePropertiesPassthrough() {
-
+class PluginUpdatePropertiesTest extends \PHPUnit\Framework\TestCase
+{
+ public function testUpdatePropertiesPassthrough()
+ {
$tree = [
new DAV\SimpleCollection('foo'),
];
@@ -24,11 +26,10 @@ class PluginUpdatePropertiesTest extends \PHPUnit_Framework_TestCase {
];
$this->assertEquals($expected, $result);
-
}
- function testRemoveGroupMembers() {
-
+ public function testRemoveGroupMembers()
+ {
$tree = [
new MockPrincipal('foo', 'foo'),
];
@@ -42,16 +43,15 @@ class PluginUpdatePropertiesTest extends \PHPUnit_Framework_TestCase {
]);
$expected = [
- '{DAV:}group-member-set' => 204
+ '{DAV:}group-member-set' => 204,
];
$this->assertEquals($expected, $result);
$this->assertEquals([], $tree[0]->getGroupMemberSet());
-
}
- function testSetGroupMembers() {
-
+ public function testSetGroupMembers()
+ {
$tree = [
new MockPrincipal('foo', 'foo'),
];
@@ -65,19 +65,18 @@ class PluginUpdatePropertiesTest extends \PHPUnit_Framework_TestCase {
]);
$expected = [
- '{DAV:}group-member-set' => 200
+ '{DAV:}group-member-set' => 200,
];
$this->assertEquals($expected, $result);
$this->assertEquals(['bar', 'baz'], $tree[0]->getGroupMemberSet());
-
}
/**
- * @expectedException Sabre\DAV\Exception
+ * @expectedException \Sabre\DAV\Exception
*/
- function testSetBadValue() {
-
+ public function testSetBadValue()
+ {
$tree = [
new MockPrincipal('foo', 'foo'),
];
@@ -89,11 +88,10 @@ class PluginUpdatePropertiesTest extends \PHPUnit_Framework_TestCase {
$result = $server->updateProperties('foo', [
'{DAV:}group-member-set' => new \StdClass(),
]);
-
}
- function testSetBadNode() {
-
+ public function testSetBadNode()
+ {
$tree = [
new DAV\SimpleCollection('foo'),
];
@@ -111,6 +109,5 @@ class PluginUpdatePropertiesTest extends \PHPUnit_Framework_TestCase {
];
$this->assertEquals($expected, $result);
-
}
}