Add unit test

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-06-14 15:32:34 +02:00
parent 4f98852f52
commit f28511cac6
No known key found for this signature in database
GPG key ID: E166FD8976B3BAC8

View file

@ -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,
]
];
}