Skip to content

Commit

Permalink
Add username2dn in mock for unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil <akhil@e.email>
  • Loading branch information
akhil1508 committed Aug 16, 2024
1 parent 2c85165 commit ddbe21b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/user_ldap/tests/User_LDAPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ private function prepareAccessForCheckPassword($noDisplayName = false) {
->method('dn2username')
->with($this->equalTo('dnOfRoland,dc=test'))
->willReturn($retVal);
$this->access->expects($this->any())
->method('username2dn')
->with($this->equalTo('gunslinger'))
->willReturn('dnOfRoland,dc=test');
$this->access->expects($this->any())
->method('stringResemblesDN')
->with($this->equalTo('dnOfRoland,dc=test'))
Expand Down

0 comments on commit ddbe21b

Please sign in to comment.