From 32597f896602c891a3e4f0164e2d0468e67290db Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 5 Jan 2018 00:10:10 +0100 Subject: [PATCH] test adoption for stable12 Signed-off-by: Arthur Schiwon --- apps/user_ldap/tests/User_LDAPTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/user_ldap/tests/User_LDAPTest.php b/apps/user_ldap/tests/User_LDAPTest.php index 969e8c5651..0b4e5d1bf4 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')