diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-12-12 00:25:10 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-12-15 11:53:39 +0100 |
commit | d8ad4ef6b5fc038e8187dc285925cd1a0d7fb5bf (patch) | |
tree | 2ecbc4bf0bcd0737f7cf57ecb6bbee22982a1928 /tests/lib/Contacts | |
parent | 2b017b704a4a49801bc09774a1a17cfedca9cc7e (diff) | |
download | nextcloud-server-d8ad4ef6b5fc038e8187dc285925cd1a0d7fb5bf.tar.gz nextcloud-server-d8ad4ef6b5fc038e8187dc285925cd1a0d7fb5bf.zip |
use a consistent default value for sharing.maxAutocompleteResults
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests/lib/Contacts')
-rw-r--r-- | tests/lib/Contacts/ContactsMenu/ManagerTest.php | 7 |
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') |