summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/api/share20ocstest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/tests/api/share20ocstest.php')
-rw-r--r--apps/files_sharing/tests/api/share20ocstest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/api/share20ocstest.php b/apps/files_sharing/tests/api/share20ocstest.php
index ffb74da2af7..96ce34f963c 100644
--- a/apps/files_sharing/tests/api/share20ocstest.php
+++ b/apps/files_sharing/tests/api/share20ocstest.php
@@ -82,6 +82,8 @@ class Share20OCSTest extends \Test\TestCase {
$this->currentUser = $this->getMock('OCP\IUser');
$this->currentUser->method('getUID')->willReturn('currentUser');
+ $this->userManager->expects($this->any())->method('userExists')->willReturn(true);
+
$this->l = $this->getMock('\OCP\IL10N');
$this->l->method('t')
->will($this->returnCallback(function($text, $parameters = []) {