summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-14 15:32:34 +0200
committerJoas Schilling <coding@schilljs.com>2017-06-14 15:32:34 +0200
commitf28511cac65a688a07965760bf39a7863f2e3e98 (patch)
tree3e771e0ff78bfa9962b61892607513db4a2d643f /apps
parent4f98852f5254db0ed17baea813cd12ced0d2e65b (diff)
downloadnextcloud-server-f28511cac65a688a07965760bf39a7863f2e3e98.tar.gz
nextcloud-server-f28511cac65a688a07965760bf39a7863f2e3e98.zip
Add unit test
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php15
1 files changed, 15 insertions, 0 deletions
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,
+ ]
];
}