summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-08-10 15:01:14 +0200
committerGitHub <noreply@github.com>2018-08-10 15:01:14 +0200
commit7aad5b7721bbecf673b1adb4f40a9b561bf6949e (patch)
tree4f1e48e73efc56bca65529b002cc1a86eeb5eab2 /tests
parent674d5f292426007caca622e8a3279b4b099087aa (diff)
parentc80049516992cdd06c5d6cf7265af1abe4156f98 (diff)
downloadnextcloud-server-7aad5b7721bbecf673b1adb4f40a9b561bf6949e.tar.gz
nextcloud-server-7aad5b7721bbecf673b1adb4f40a9b561bf6949e.zip
Merge pull request #10543 from nextcloud/ignore-deactivated-users
Do not show deactivated users in sharees and contacts
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;
}