summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/DAV/GroupPrincipalTest.php')
-rw-r--r--apps/dav/tests/unit/DAV/GroupPrincipalTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
index e5be0d75d53..f0fda89ee92 100644
--- a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
+++ b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
@@ -49,7 +49,7 @@ class GroupPrincipalTest extends \Test\TestCase {
/** @var GroupPrincipalBackend */
private $connector;
- public function setUp() {
+ protected function setUp(): void {
$this->groupManager = $this->createMock(IGroupManager::class);
$this->userSession = $this->createMock(IUserSession::class);
$this->shareManager = $this->createMock(IManager::class);
@@ -174,11 +174,11 @@ class GroupPrincipalTest extends \Test\TestCase {
$this->assertSame([], $response);
}
- /**
- * @expectedException \Sabre\DAV\Exception
- * @expectedExceptionMessage Setting members of the group is not supported yet
- */
+
public function testSetGroupMembership() {
+ $this->expectException(\Sabre\DAV\Exception::class);
+ $this->expectExceptionMessage('Setting members of the group is not supported yet');
+
$this->connector->setGroupMemberSet('principals/groups/foo', ['foo']);
}