diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-09-13 14:29:57 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-09-26 23:10:24 +0200 |
commit | a28b1d91f95f421c6efbb7752d9404c6719c0688 (patch) | |
tree | 6a7db1eb763d4ec480e898046971db56d3a23768 /lib/private/Collaboration | |
parent | 4a315ede819b700b6f55fa1c6dc70c60ea728ea4 (diff) | |
download | nextcloud-server-a28b1d91f95f421c6efbb7752d9404c6719c0688.tar.gz nextcloud-server-a28b1d91f95f421c6efbb7752d9404c6719c0688.zip |
split off former searchSharee unit test
also moves registering default plugins to Server for proper unit testing
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r-- | lib/private/Collaboration/Collaborators/Search.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/private/Collaboration/Collaborators/Search.php b/lib/private/Collaboration/Collaborators/Search.php index 5a17a3fb653..e9b15dd1201 100644 --- a/lib/private/Collaboration/Collaborators/Search.php +++ b/lib/private/Collaboration/Collaborators/Search.php @@ -34,12 +34,7 @@ class Search implements ISearch { /** @var IContainer */ private $c; - protected $pluginList = [ - Share::SHARE_TYPE_USER => [UserPlugin::class], - Share::SHARE_TYPE_GROUP => [GroupPlugin::class], - Share::SHARE_TYPE_EMAIL => [MailPlugin::class], - Share::SHARE_TYPE_REMOTE => [RemotePlugin::class], - ]; + protected $pluginList = []; public function __construct(IContainer $c) { $this->c = $c; @@ -81,7 +76,7 @@ class Search implements ISearch { $searchResult->unsetResult($emailType); } - return [$searchResult->asArray(), $hasMoreResults]; + return [$searchResult->asArray(), (bool)$hasMoreResults]; } public function registerPlugin(array $pluginInfo) { |