File tree 1 file changed +6
-6
lines changed
src/Symfony/Component/Security/Core/Tests/User
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,14 @@ public function testLoadUserByUsernameFailsIfMoreThanOneLdapPasswordsInEntry()
156
156
*/
157
157
public function testLoadUserByUsernameFailsIfEntryHasNoUidKeyAttribute ()
158
158
{
159
- $ result = $ this ->getMock (CollectionInterface::class);
160
- $ query = $ this ->getMock (QueryInterface::class);
159
+ $ result = $ this ->getMockBuilder (CollectionInterface::class)-> getMock ( );
160
+ $ query = $ this ->getMockBuilder (QueryInterface::class)-> getMock ( );
161
161
$ query
162
162
->expects ($ this ->once ())
163
163
->method ('execute ' )
164
164
->will ($ this ->returnValue ($ result ))
165
165
;
166
- $ ldap = $ this ->getMock (LdapInterface::class);
166
+ $ ldap = $ this ->getMockBuilder (LdapInterface::class)-> getMock ( );
167
167
$ result
168
168
->expects ($ this ->once ())
169
169
->method ('offsetGet ' )
@@ -321,14 +321,14 @@ public function testLoadUserByUsernameIsSuccessfulWithoutPasswordAttributeAndWro
321
321
322
322
public function testLoadUserByUsernameIsSuccessfulWithPasswordAttribute ()
323
323
{
324
- $ result = $ this ->getMock (CollectionInterface::class);
325
- $ query = $ this ->getMock (QueryInterface::class);
324
+ $ result = $ this ->getMockBuilder (CollectionInterface::class)-> getMock ( );
325
+ $ query = $ this ->getMockBuilder (QueryInterface::class)-> getMock ( );
326
326
$ query
327
327
->expects ($ this ->once ())
328
328
->method ('execute ' )
329
329
->will ($ this ->returnValue ($ result ))
330
330
;
331
- $ ldap = $ this ->getMock (LdapInterface::class);
331
+ $ ldap = $ this ->getMockBuilder (LdapInterface::class)-> getMock ( );
332
332
$ result
333
333
->expects ($ this ->once ())
334
334
->method ('offsetGet ' )
You can’t perform that action at this time.
0 commit comments