File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public function testQueryForDn()
149
149
{
150
150
$ collection = new \ArrayIterator ([new Entry ('' )]);
151
151
152
- $ query = $ this ->getMockBuilder (QueryInterface::class)-> getMock ( );
152
+ $ query = $ this ->createMock (QueryInterface::class);
153
153
$ query ->expects ($ this ->once ())->method ('execute ' )->willReturn ($ collection );
154
154
155
155
$ this ->ldap
@@ -169,9 +169,9 @@ public function testEmptyQueryResultShouldThrowAnException()
169
169
$ this ->expectException (BadCredentialsException::class);
170
170
$ this ->expectExceptionMessage ('The presented username is invalid. ' );
171
171
172
- $ collection = $ this ->getMockBuilder (CollectionInterface::class)-> getMock ( );
172
+ $ collection = $ this ->createMock (CollectionInterface::class);
173
173
174
- $ query = $ this ->getMockBuilder (QueryInterface::class)-> getMock ( );
174
+ $ query = $ this ->createMock (QueryInterface::class);
175
175
$ query ->expects ($ this ->once ())->method ('execute ' )->willReturn ($ collection );
176
176
177
177
$ this ->ldap
You can’t perform that action at this time.
0 commit comments