From eb7d70fc393a0a3b4441872de4a7ceb8bf0c7cc2 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 12 Aug 2014 16:13:17 +0200 Subject: [PATCH] adjust login test to code changes --- apps/user_ldap/tests/user_ldap.php | 5 +++++ 1 file changed, 5 insertions(+) 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 @@ -130,6 +130,11 @@ class Test_User_Ldap_Direct extends \PHPUnit_Framework_TestCase { ->with($this->equalTo('dnOfRoland,dc=test')) ->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) { -- 2.39.5