Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-12-12 02:25:10 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-12-15 13:53:39 +0300
commitd8ad4ef6b5fc038e8187dc285925cd1a0d7fb5bf (patch)
tree2ecbc4bf0bcd0737f7cf57ecb6bbee22982a1928 /tests
parent2b017b704a4a49801bc09774a1a17cfedca9cc7e (diff)
use a consistent default value for sharing.maxAutocompleteResults
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Contacts/ContactsMenu/ManagerTest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lib/Contacts/ContactsMenu/ManagerTest.php b/tests/lib/Contacts/ContactsMenu/ManagerTest.php
index 4cfbd9c7c90..2f5acf61644 100644
--- a/tests/lib/Contacts/ContactsMenu/ManagerTest.php
+++ b/tests/lib/Contacts/ContactsMenu/ManagerTest.php
@@ -28,6 +28,7 @@ use OC\Contacts\ContactsMenu\ActionProviderStore;
use OC\Contacts\ContactsMenu\ContactsStore;
use OC\Contacts\ContactsMenu\Manager;
use OCP\App\IAppManager;
+use OCP\Constants;
use OCP\Contacts\ContactsMenu\IEntry;
use OCP\Contacts\ContactsMenu\IProvider;
use OCP\IConfig;
@@ -82,7 +83,7 @@ class ManagerTest extends TestCase {
$this->config->expects($this->at(0))
->method('getSystemValueInt')
- ->with('sharing.maxAutocompleteResults', 25)
+ ->with('sharing.maxAutocompleteResults', Constants::SHARING_MAX_AUTOCOMPLETE_RESULTS_DEFAULT)
->willReturn(25);
$this->config->expects($this->at(1))
->method('getSystemValueInt')
@@ -120,7 +121,7 @@ class ManagerTest extends TestCase {
$this->config->expects($this->at(0))
->method('getSystemValueInt')
- ->with('sharing.maxAutocompleteResults', 25)
+ ->with('sharing.maxAutocompleteResults', Constants::SHARING_MAX_AUTOCOMPLETE_RESULTS_DEFAULT)
->willReturn(3);
$this->config->expects($this->at(1))
->method('getSystemValueInt')
@@ -157,7 +158,7 @@ class ManagerTest extends TestCase {
$this->config->expects($this->at(0))
->method('getSystemValueInt')
- ->with('sharing.maxAutocompleteResults', 25)
+ ->with('sharing.maxAutocompleteResults', Constants::SHARING_MAX_AUTOCOMPLETE_RESULTS_DEFAULT)
->willReturn(3);
$this->config->expects($this->at(1))
->method('getSystemValueInt')