summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Collaboration/Collaborators/UserPluginTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/Collaboration/Collaborators/UserPluginTest.php b/tests/lib/Collaboration/Collaborators/UserPluginTest.php
index cfb97de8676..7513f9da5b6 100644
--- a/tests/lib/Collaboration/Collaborators/UserPluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/UserPluginTest.php
@@ -89,7 +89,7 @@ class UserPluginTest extends TestCase {
);
}
- public function getUserMock($uid, $displayName) {
+ public function getUserMock($uid, $displayName, $enabled = true) {
$user = $this->createMock(IUser::class);
$user->expects($this->any())
@@ -100,6 +100,10 @@ class UserPluginTest extends TestCase {
->method('getDisplayName')
->willReturn($displayName);
+ $user->expects($this->any())
+ ->method('isEnabled')
+ ->willReturn($enabled);
+
return $user;
}