Add tel, note, org and title search

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-12-07 15:03:10 +01:00
parent 39bee7948d
commit 45b3ddd882
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
2 changed files with 15 additions and 1 deletions

View File

@ -61,7 +61,11 @@ class ContactsSearchProvider implements IProvider {
'FN',
'NICKNAME',
'EMAIL',
'TEL',
'ADR',
'TITLE',
'ORG',
'NOTE',
];
/**

View File

@ -160,7 +160,17 @@ class ContactsSearchProviderTest extends TestCase {
$this->backend->expects($this->once())
->method('searchPrincipalUri')
->with('principals/users/john.doe', 'search term',
['N', 'FN', 'NICKNAME', 'EMAIL', 'ADR'],
[
'N',
'FN',
'NICKNAME',
'EMAIL',
'TEL',
'ADR',
'TITLE',
'ORG',
'NOTE',
],
['limit' => 5, 'offset' => 20])
->willReturn([
[