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 @@ -148,7 +148,7 @@ public function testQueryForDn()
148
148
{
149
149
$ collection = new \ArrayIterator ([new Entry ('' )]);
150
150
151
- $ query = $ this ->getMockBuilder (QueryInterface::class)-> getMock ( );
151
+ $ query = $ this ->createMock (QueryInterface::class);
152
152
$ query ->expects ($ this ->once ())->method ('execute ' )->willReturn ($ collection );
153
153
154
154
$ this ->ldap
@@ -168,9 +168,9 @@ public function testEmptyQueryResultShouldThrowAnException()
168
168
$ this ->expectException (BadCredentialsException::class);
169
169
$ this ->expectExceptionMessage ('The presented username is invalid. ' );
170
170
171
- $ collection = $ this ->getMockBuilder (CollectionInterface::class)-> getMock ( );
171
+ $ collection = $ this ->createMock (CollectionInterface::class);
172
172
173
- $ query = $ this ->getMockBuilder (QueryInterface::class)-> getMock ( );
173
+ $ query = $ this ->createMock (QueryInterface::class);
174
174
$ query ->expects ($ this ->once ())->method ('execute ' )->willReturn ($ collection );
175
175
176
176
$ this ->ldap
You can’t perform that action at this time.
0 commit comments