Skip to content

Commit 0556d57

Browse files
committed
Fixed deprecation warnings about passing null as parameter
1 parent 0ff9a31 commit 0556d57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/Authentication/Provider/LdapBindAuthenticationProviderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function testBindFailureShouldThrowAnException()
7070
->method('bind')
7171
->willThrowException(new ConnectionException())
7272
;
73+
$ldap->method('escape')->willReturnArgument(0);
7374
$userChecker = $this->createMock(UserCheckerInterface::class);
7475

7576
$provider = new LdapBindAuthenticationProvider($userProvider, $userChecker, 'key', $ldap);
@@ -207,6 +208,7 @@ public function testEmptyQueryResultShouldThrowAnException()
207208
->method('query')
208209
->willReturn($query)
209210
;
211+
$ldap->method('escape')->willReturnArgument(0);
210212
$userChecker = $this->createMock(UserCheckerInterface::class);
211213

212214
$provider = new LdapBindAuthenticationProvider($userProvider, $userChecker, 'key', $ldap, '{username}', true, 'elsa', 'test1234A$');

0 commit comments

Comments
 (0)