Add unit test
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
4f98852f52
commit
f28511cac6
1 changed files with 15 additions and 0 deletions
|
@ -1272,6 +1272,21 @@ class ShareesAPIControllerTest extends TestCase {
|
|||
['results' => [], 'exact' => [], 'exactIdMatch' => false],
|
||||
true,
|
||||
],
|
||||
// Local user found by email
|
||||
[
|
||||
'test@example.com',
|
||||
[
|
||||
[
|
||||
'FN' => 'User',
|
||||
'EMAIL' => ['test@example.com'],
|
||||
'CLOUD' => ['test@localhost'],
|
||||
'isLocalSystemBook' => true,
|
||||
]
|
||||
],
|
||||
false,
|
||||
['results' => [], 'exact' => [], 'exactIdMatch' => true],
|
||||
false,
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue