-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(contactsintegration): Limit number of matches
Signed-off-by: Christoph Wurst <[email protected]>
- Loading branch information
1 parent
257151c
commit c5274da
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* @author Christoph Wurst <[email protected]> | ||
* | ||
|
@@ -366,7 +368,14 @@ public function common($term, $searchResult, $allowSystemUsers, $allowSystemUser | |
->will($this->returnValue(true)); | ||
$this->contactsManager->expects($this->once()) | ||
->method('search') | ||
->with($term, ['UID', 'FN', 'EMAIL'], ['enumeration' => $allowSystemUsers, 'fullmatch' => $shareeEnumerationFullMatch]) | ||
->with( | ||
$term, | ||
['UID', 'FN', 'EMAIL'], | ||
[ | ||
'enumeration' => $allowSystemUsers, | ||
'fullmatch' => $shareeEnumerationFullMatch, | ||
'limit' => 20, | ||
]) | ||
->will($this->returnValue($searchResult)); | ||
} | ||
|
||
|