summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/user_ldap.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/tests/user_ldap.php')
-rw-r--r--apps/user_ldap/tests/user_ldap.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/user_ldap.php b/apps/user_ldap/tests/user_ldap.php
index 8787e023655..e51f6cb5bb9 100644
--- a/apps/user_ldap/tests/user_ldap.php
+++ b/apps/user_ldap/tests/user_ldap.php
@@ -131,6 +131,11 @@ class Test_User_Ldap_Direct extends \PHPUnit_Framework_TestCase {
->will($this->returnValue('gunslinger'));
$access->expects($this->any())
+ ->method('stringResemblesDN')
+ ->with($this->equalTo('dnOfRoland,dc=test'))
+ ->will($this->returnValue(true));
+
+ $access->expects($this->any())
->method('areCredentialsValid')
->will($this->returnCallback(function($dn, $pwd) {
if($pwd === 'dt19') {