summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-08 17:26:30 +0100
committerJoas Schilling <coding@schilljs.com>2021-12-08 18:58:54 +0100
commitd49ad7ea47e35a463e4953c9922a5af77ff7acf2 (patch)
treee31d876e995cf616597dea237c92a1e1aeef1f10 /apps/files_sharing/tests
parent0f1670be8a1fa25ebab9b5d7bdf074adf1587e4d (diff)
downloadnextcloud-server-d49ad7ea47e35a463e4953c9922a5af77ff7acf2.tar.gz
nextcloud-server-d49ad7ea47e35a463e4953c9922a5af77ff7acf2.zip
Limit more contact searches
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/Controller/ShareAPIControllerTest.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
index 86a7d479899..0a837400725 100644
--- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
@@ -4417,7 +4417,11 @@ class ShareAPIControllerTest extends TestCase {
$cm->method('search')
->willReturnMap([
- ['user@server.com', ['CLOUD'], [],
+ ['user@server.com', ['CLOUD'], [
+ 'limit' => 1,
+ 'enumeration' => false,
+ 'strict_search' => true,
+ ],
[
[
'CLOUD' => [
@@ -4427,7 +4431,11 @@ class ShareAPIControllerTest extends TestCase {
],
],
],
- ['user@server.com', ['EMAIL'], [],
+ ['user@server.com', ['EMAIL'], [
+ 'limit' => 1,
+ 'enumeration' => false,
+ 'strict_search' => true,
+ ],
[
[
'EMAIL' => [