From f28511cac65a688a07965760bf39a7863f2e3e98 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 14 Jun 2017 15:32:34 +0200 Subject: [PATCH] Add unit test Signed-off-by: Joas Schilling --- .../tests/Controller/ShareesAPIControllerTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php index e3d869db3d6..e027d0751cb 100644 --- a/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php @@ -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, + ] ]; }