diff --git a/apps/user_ldap/tests/User_LDAPTest.php b/apps/user_ldap/tests/User_LDAPTest.php index 969e8c5651a..0b4e5d1bf46 100644 --- a/apps/user_ldap/tests/User_LDAPTest.php +++ b/apps/user_ldap/tests/User_LDAPTest.php @@ -1035,9 +1035,11 @@ class User_LDAPTest extends TestCase { ->will($this->returnValue('roland')); $access->expects($this->any()) - ->method('stringResemblesDN') - ->with($this->equalTo('dnOfRoland,dc=test')) - ->will($this->returnValue(true)); + ->method('stringResemblesDN') + ->will($this->returnCallback(function($string) { + // very simplified + return strpos($string, ',') !== false; + })); $access->expects($this->any()) ->method('setPassword')