summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-09-12 22:38:36 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-09-26 23:10:24 +0200
commitc92f7ee7674541f1e899e0f5077d79907d21df4c (patch)
tree8642b9002ec0a1b4088895f393969338227dbbcf /lib
parentb35760de2718cbf8c9361d2192051e50ff447d43 (diff)
downloadnextcloud-server-c92f7ee7674541f1e899e0f5077d79907d21df4c.tar.gz
nextcloud-server-c92f7ee7674541f1e899e0f5077d79907d21df4c.zip
split off getRemote unit tests
adds two small fixes → they actually work \o/ Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Collaboration/Collaborators/RemotePlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/RemotePlugin.php b/lib/private/Collaboration/Collaborators/RemotePlugin.php
index c97a951be7e..b17a64e4ff1 100644
--- a/lib/private/Collaboration/Collaborators/RemotePlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemotePlugin.php
@@ -76,7 +76,7 @@ class RemotePlugin implements ISearchPlugin {
if (strtolower($contact['FN']) === $lowerSearch || strtolower($cloudId) === $lowerSearch) {
if (strtolower($cloudId) === $lowerSearch) {
- $searchResult->hasExactIdMatch($resultType);
+ $searchResult->markExactIdMatch($resultType);
}
$result['exact'][] = [
'label' => $contact['FN'] . " ($cloudId)",
@@ -116,7 +116,7 @@ class RemotePlugin implements ISearchPlugin {
$searchResult->addResultSet($resultType, $result['wide'], $result['exact']);
- return false;
+ return true;
}
/**