File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ public function testGetTokenNoTokenStorage()
33
33
34
34
public function testGetTokenNoToken ()
35
35
{
36
- $ tokenStorage = $ this ->getMock ('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' );
36
+ $ tokenStorage = $ this ->getMockBuilder ('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' )-> getMock ( );
37
37
$ this ->container ->set ('security.token_storage ' , $ tokenStorage );
38
38
$ this ->assertNull ($ this ->globals ->getToken ());
39
39
}
40
40
41
41
public function testGetToken ()
42
42
{
43
- $ tokenStorage = $ this ->getMock ('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' );
43
+ $ tokenStorage = $ this ->getMockBuilder ('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' )-> getMock ( );
44
44
45
45
$ this ->container ->set ('security.token_storage ' , $ tokenStorage );
46
46
You can’t perform that action at this time.
0 commit comments