adjust login test to code changes

This commit is contained in:
Arthur Schiwon 2014-08-12 16:13:17 +02:00
parent fc6793f2ae
commit eb7d70fc39
1 changed files with 5 additions and 0 deletions

View File

@ -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) {