diff options
author | Thomas Citharel <tcit@tcit.fr> | 2018-08-06 09:55:24 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2018-08-06 09:55:24 +0200 |
commit | 03f1fef1601c21a2c387a20db9e46b21273c15c9 (patch) | |
tree | 3fe2b909216f4b99542ca521b6a765c68b990736 /tests/lib/Collaboration | |
parent | a311798674880ba7d40c0ad1d3ae0d6b42f1d9b4 (diff) | |
download | nextcloud-server-03f1fef1601c21a2c387a20db9e46b21273c15c9.tar.gz nextcloud-server-03f1fef1601c21a2c387a20db9e46b21273c15c9.zip |
Ignore deactivated users in collaborators user search plugin
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'tests/lib/Collaboration')
-rw-r--r-- | tests/lib/Collaboration/Collaborators/UserPluginTest.php | 6 |
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; } |