summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2018-02-20 23:02:53 +0100
committerGitHub <noreply@github.com>2018-02-20 23:02:53 +0100
commit8e5120ce66d6d2de0cee497450ab8e3634b729d0 (patch)
tree90e4f1ce588c4099003b5e8b007e84511daf1c7c /tests
parentcf83eb5e77313c3a820cd1e808c83e0991b9d6a0 (diff)
parentb30e035e25923101345dc02b7e82936cbef9b811 (diff)
downloadnextcloud-server-8e5120ce66d6d2de0cee497450ab8e3634b729d0.tar.gz
nextcloud-server-8e5120ce66d6d2de0cee497450ab8e3634b729d0.zip
Merge pull request #8206 from nextcloud/bugfix/noid/fix-collaboration-result-size
Better result handling of email search
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Collaboration/Collaborators/MailPluginTest.php4
-rw-r--r--tests/lib/Collaboration/Collaborators/RemotePluginTest.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Collaboration/Collaborators/MailPluginTest.php b/tests/lib/Collaboration/Collaborators/MailPluginTest.php
index b728ae521e2..9c4836c2eb3 100644
--- a/tests/lib/Collaboration/Collaborators/MailPluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/MailPluginTest.php
@@ -103,7 +103,7 @@ class MailPluginTest extends TestCase {
->with($searchTerm, ['EMAIL', 'FN'])
->willReturn($contacts);
- $moreResults = $this->plugin->search($searchTerm, 0, 0, $this->searchResult);
+ $moreResults = $this->plugin->search($searchTerm, 2, 0, $this->searchResult);
$result = $this->searchResult->asArray();
$this->assertSame($exactIdMatch, $this->searchResult->hasExactIdMatch(new SearchResultType('emails')));
@@ -398,7 +398,7 @@ class MailPluginTest extends TestCase {
return in_array($group, $userToGroupMapping[$userId]);
});
- $moreResults = $this->plugin->search($searchTerm, 0, 0, $this->searchResult);
+ $moreResults = $this->plugin->search($searchTerm, 2, 0, $this->searchResult);
$result = $this->searchResult->asArray();
$this->assertSame($exactIdMatch, $this->searchResult->hasExactIdMatch(new SearchResultType('emails')));
diff --git a/tests/lib/Collaboration/Collaborators/RemotePluginTest.php b/tests/lib/Collaboration/Collaborators/RemotePluginTest.php
index 5c4b3af5e70..aa009a7134b 100644
--- a/tests/lib/Collaboration/Collaborators/RemotePluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/RemotePluginTest.php
@@ -94,7 +94,7 @@ class RemotePluginTest extends TestCase {
->with($searchTerm, ['CLOUD', 'FN'])
->willReturn($contacts);
- $moreResults = $this->plugin->search($searchTerm, 0, 0, $this->searchResult);
+ $moreResults = $this->plugin->search($searchTerm, 2, 0, $this->searchResult);
$result = $this->searchResult->asArray();
$this->assertSame($exactIdMatch, $this->searchResult->hasExactIdMatch(new SearchResultType('remotes')));