File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Symfony/Component/Security/Core/Tests/User Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,14 @@ public function testLoadUserByUsernameFailsIfMoreThanOneLdapPasswordsInEntry()
156156 */
157157 public function testLoadUserByUsernameFailsIfEntryHasNoUidKeyAttribute ()
158158 {
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 ( );
161161 $ query
162162 ->expects ($ this ->once ())
163163 ->method ('execute ' )
164164 ->will ($ this ->returnValue ($ result ))
165165 ;
166- $ ldap = $ this ->getMock (LdapInterface::class);
166+ $ ldap = $ this ->getMockBuilder (LdapInterface::class)-> getMock ( );
167167 $ result
168168 ->expects ($ this ->once ())
169169 ->method ('offsetGet ' )
@@ -321,14 +321,14 @@ public function testLoadUserByUsernameIsSuccessfulWithoutPasswordAttributeAndWro
321321
322322 public function testLoadUserByUsernameIsSuccessfulWithPasswordAttribute ()
323323 {
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 ( );
326326 $ query
327327 ->expects ($ this ->once ())
328328 ->method ('execute ' )
329329 ->will ($ this ->returnValue ($ result ))
330330 ;
331- $ ldap = $ this ->getMock (LdapInterface::class);
331+ $ ldap = $ this ->getMockBuilder (LdapInterface::class)-> getMock ( );
332332 $ result
333333 ->expects ($ this ->once ())
334334 ->method ('offsetGet ' )
You can’t perform that action at this time.
0 commit comments