diff options
Diffstat (limited to 'tests')
-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') |