summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration/Collaborators
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-09-14 23:41:04 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-09-26 23:10:25 +0200
commit3db3e65121e5908c7a5729dfef965a747da61cca (patch)
tree8c97f7cea5a873a8483474cb555c836116d15eee /lib/private/Collaboration/Collaborators
parentc43685e6fc142da72a0a77587739986f29635447 (diff)
downloadnextcloud-server-3db3e65121e5908c7a5729dfef965a747da61cca.tar.gz
nextcloud-server-3db3e65121e5908c7a5729dfef965a747da61cca.zip
add tests for Lookup Plugin
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Collaboration/Collaborators')
-rw-r--r--lib/private/Collaboration/Collaborators/LookupPlugin.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php
index e3a04fb7dde..3a6a0943772 100644
--- a/lib/private/Collaboration/Collaborators/LookupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php
@@ -50,7 +50,7 @@ class LookupPlugin implements ISearchPlugin {
$lookupServerUrl = $this->config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com');
$lookupServerUrl = rtrim($lookupServerUrl, '/');
- $result = ['wide' => [], 'exact' => []];
+ $result = [];
try {
$client = $this->clientService->newClient();
@@ -64,7 +64,6 @@ class LookupPlugin implements ISearchPlugin {
$body = json_decode($response->getBody(), true);
- $result = [];
foreach ($body as $lookup) {
$result[] = [
'label' => $lookup['federationId'],