Skip to content

Commit 17939ac

Browse files
committed
Fix PHP 8.1 deprecations
1 parent 0f4d6af commit 17939ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public function testBindFailureShouldThrowAnException()
138138
$this->expectException(BadCredentialsException::class);
139139
$this->expectExceptionMessage('The presented password is invalid.');
140140

141+
$this->ldap->method('escape')->willReturnArgument(0);
141142
$this->ldap->expects($this->any())->method('bind')->willThrowException(new ConnectionException());
142143

143144
$listener = $this->createListener();
@@ -178,6 +179,7 @@ public function testEmptyQueryResultShouldThrowAnException()
178179
->withConsecutive(
179180
['elsa', 'test1234A$']
180181
);
182+
$this->ldap->method('escape')->willReturnArgument(0);
181183
$this->ldap->expects($this->once())->method('query')->willReturn($query);
182184

183185
$listener = $this->createListener();

0 commit comments

Comments
 (0)