Skip to content

Commit b56f003

Browse files
kalessilnicolas-grekas
authored andcommitted
SCA: dropped unused mocks, duplicate import and a function alias usage
1 parent a05751e commit b56f003

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

Tests/Firewall/BasicAuthenticationListenerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ public function testHandleWhenAuthenticationFails()
7474
'PHP_AUTH_PW' => 'ThePassword',
7575
]);
7676

77-
$token = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')->getMock();
78-
7977
$tokenStorage = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface')->getMock();
8078
$tokenStorage
8179
->expects($this->any())

Tests/RememberMe/AbstractRememberMeServicesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public function testLoginSuccessIsNotProcessedWhenTokenDoesNotContainUserInterfa
124124
$service = $this->getService(null, ['name' => 'foo', 'always_remember_me' => true, 'path' => null, 'domain' => null]);
125125
$request = new Request();
126126
$response = new Response();
127-
$account = $this->getMockBuilder('Symfony\Component\Security\Core\User\UserInterface')->getMock();
128127
$token = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')->getMock();
129128
$token
130129
->expects($this->once())

0 commit comments

Comments
 (0)