test adoption for stable12

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2018-01-05 00:10:10 +01:00
parent 7f0e4a5357
commit 32597f8966
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 5 additions and 3 deletions

View File

@ -1035,9 +1035,11 @@ class User_LDAPTest extends TestCase {
->will($this->returnValue('roland')); ->will($this->returnValue('roland'));
$access->expects($this->any()) $access->expects($this->any())
->method('stringResemblesDN') ->method('stringResemblesDN')
->with($this->equalTo('dnOfRoland,dc=test')) ->will($this->returnCallback(function($string) {
->will($this->returnValue(true)); // very simplified
return strpos($string, ',') !== false;
}));
$access->expects($this->any()) $access->expects($this->any())
->method('setPassword') ->method('setPassword')