]> source.dussan.org Git - nextcloud-server.git/commitdiff
test adoption for stable12 7694/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 4 Jan 2018 23:10:10 +0000 (00:10 +0100)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 4 Jan 2018 23:10:10 +0000 (00:10 +0100)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/tests/User_LDAPTest.php

index 969e8c5651a6e126026ddfacbd6430795bca31f8..0b4e5d1bf46c598a7c7f9bb9f98df33fd0d74fcf 100644 (file)
@@ -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')