Skip to content

Commit e099d58

Browse files
committed
[Security\Guard] Fix test
1 parent cddb20d commit e099d58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Authentication/AuthenticatorManagerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
2020
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
2121
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
22-
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
22+
use Symfony\Component\Security\Core\Exception\UserNotFoundException;
2323
use Symfony\Component\Security\Core\User\InMemoryUser;
2424
use Symfony\Component\Security\Http\Authentication\AuthenticatorManager;
2525
use Symfony\Component\Security\Http\Authenticator\InteractiveAuthenticatorInterface;
@@ -271,7 +271,7 @@ public function testInteractiveAuthenticator()
271271

272272
public function testAuthenticateRequestHidesInvalidUserExceptions()
273273
{
274-
$invalidUserException = new UsernameNotFoundException();
274+
$invalidUserException = new UserNotFoundException();
275275
$authenticator = $this->createMock(InteractiveAuthenticatorInterface::class);
276276
$this->request->attributes->set('_security_authenticators', [$authenticator]);
277277

0 commit comments

Comments
 (0)