From e930a0ccbef07f5ce9847c39584d4125aecffe38 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 21 Feb 2019 21:36:14 +0100 Subject: Search sharees on lookup server when explicitly requested by user Signed-off-by: Christoph Wurst --- apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/files_sharing/tests') 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()) -- cgit v1.2.3