Skip to content

Commit c260437

Browse files
committed
fixed obsolete getMock() usage
1 parent f418513 commit c260437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Templating/GlobalVariablesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public function testGetTokenNoTokenStorage()
3333

3434
public function testGetTokenNoToken()
3535
{
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();
3737
$this->container->set('security.token_storage', $tokenStorage);
3838
$this->assertNull($this->globals->getToken());
3939
}
4040

4141
public function testGetToken()
4242
{
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();
4444

4545
$this->container->set('security.token_storage', $tokenStorage);
4646

0 commit comments

Comments
 (0)