Skip to content

Commit

Permalink
Add tel, note, org and title search
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Dec 7, 2020
1 parent e02c9ec commit 342355d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/dav/lib/Search/ContactsSearchProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ class ContactsSearchProvider implements IProvider {
'FN',
'NICKNAME',
'EMAIL',
'TEL',
'ADR',
'TITLE',
'ORG',
'NOTE',
];

/**
Expand Down
12 changes: 11 additions & 1 deletion apps/dav/tests/unit/Search/ContactsSearchProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,17 @@ public function testSearch(): void {
$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([
[
Expand Down

0 comments on commit 342355d

Please sign in to comment.