Add tel, note, org and title search
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
24fe3ee439
commit
d44c6aa524
|
@ -61,7 +61,11 @@ class ContactsSearchProvider implements IProvider {
|
||||||
'FN',
|
'FN',
|
||||||
'NICKNAME',
|
'NICKNAME',
|
||||||
'EMAIL',
|
'EMAIL',
|
||||||
|
'TEL',
|
||||||
'ADR',
|
'ADR',
|
||||||
|
'TITLE',
|
||||||
|
'ORG',
|
||||||
|
'NOTE',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -160,7 +160,17 @@ class ContactsSearchProviderTest extends TestCase {
|
||||||
$this->backend->expects($this->once())
|
$this->backend->expects($this->once())
|
||||||
->method('searchPrincipalUri')
|
->method('searchPrincipalUri')
|
||||||
->with('principals/users/john.doe', 'search term',
|
->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])
|
['limit' => 5, 'offset' => 20])
|
||||||
->willReturn([
|
->willReturn([
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue