summaryrefslogtreecommitdiffstats
path: root/tests/lib/Util
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-12-22 13:38:10 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-03 13:24:56 +0100
commit2fde21e318e021d48a4880ff9cc10f0e45f5e1e9 (patch)
tree5753fac44c1bb8842fc932c36e275239e319c00c /tests/lib/Util
parenta8ab67ff48aa425edd1d86b4a3b5855150bb2ac1 (diff)
downloadnextcloud-server-2fde21e318e021d48a4880ff9cc10f0e45f5e1e9.tar.gz
nextcloud-server-2fde21e318e021d48a4880ff9cc10f0e45f5e1e9.zip
extend tests for status quo
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests/lib/Util')
-rw-r--r--tests/lib/Util/User/Dummy.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/Util/User/Dummy.php b/tests/lib/Util/User/Dummy.php
index 806a97bacba..e77902d6f4e 100644
--- a/tests/lib/Util/User/Dummy.php
+++ b/tests/lib/Util/User/Dummy.php
@@ -108,6 +108,13 @@ class Dummy extends Backend implements \OCP\IUserBackend {
return false;
}
+ public function loginName2UserName($loginName) {
+ if(isset($this->users[strtolower($loginName)])) {
+ return strtolower($loginName);
+ }
+ return false;
+ }
+
/**
* Get a list of all users
*