summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-02-21 21:36:14 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-02-26 19:44:49 +0100
commite930a0ccbef07f5ce9847c39584d4125aecffe38 (patch)
tree1c99d96afe026d3c8fc81057bc7a434cb6fb1bef /apps/files_sharing/tests
parenta3d936fbb7c8356a39308d836282b4ee6b2abdc1 (diff)
downloadnextcloud-server-e930a0ccbef07f5ce9847c39584d4125aecffe38.tar.gz
nextcloud-server-e930a0ccbef07f5ce9847c39584d4125aecffe38.zip
Search sharees on lookup server when explicitly requested by user
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php
index 618a1095407..c5d31e3b59d 100644
--- a/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php
@@ -236,12 +236,13 @@ class ShareesAPIControllerTest extends TestCase {
/** @var IConfig|\PHPUnit_Framework_MockObject_MockObject $config */
$config = $this->createMock(IConfig::class);
- $config->expects($this->exactly(2))
+ $config->expects($this->exactly(3))
->method('getAppValue')
- ->with('core', $this->anything(), $this->anything())
+ ->with($this->anything(), $this->anything(), $this->anything())
->willReturnMap([
['core', 'shareapi_only_share_with_group_members', 'no', $apiSetting],
['core', 'shareapi_allow_share_dialog_user_enumeration', 'yes', $enumSetting],
+ ['files_sharing', 'lookupServerEnabled', 'yes', 'yes'],
]);
$this->shareManager->expects($itemType === 'file' || $itemType === 'folder' ? $this->once() : $this->never())