summaryrefslogtreecommitdiffstats
path: root/tests/lib/Util/User/Dummy.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Util/User/Dummy.php')
-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
*