File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ public function testBindFailureShouldThrowAnException()
138
138
$ this ->expectException (BadCredentialsException::class);
139
139
$ this ->expectExceptionMessage ('The presented password is invalid. ' );
140
140
141
+ $ this ->ldap ->method ('escape ' )->willReturnArgument (0 );
141
142
$ this ->ldap ->expects ($ this ->any ())->method ('bind ' )->willThrowException (new ConnectionException ());
142
143
143
144
$ listener = $ this ->createListener ();
@@ -178,6 +179,7 @@ public function testEmptyQueryResultShouldThrowAnException()
178
179
->withConsecutive (
179
180
['elsa ' , 'test1234A$ ' ]
180
181
);
182
+ $ this ->ldap ->method ('escape ' )->willReturnArgument (0 );
181
183
$ this ->ldap ->expects ($ this ->once ())->method ('query ' )->willReturn ($ query );
182
184
183
185
$ listener = $ this ->createListener ();
You can’t perform that action at this time.
0 commit comments