Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add tel, note, org and title search
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Dec 14, 2020
commit 45b3ddd882e395af17cc9ffb7476b8a124d903ee
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