[SecurityBundle] fix tests

This commit is contained in:
Nicolas Grekas 2020-01-21 12:47:55 +01:00
parent 9d33550945
commit 5521d3d458

View File

@ -2,8 +2,10 @@
namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\SecuredPageBundle\Security\Core\User; namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\SecuredPageBundle\Security\Core\User;
use Symfony\Bundle\SecurityBundle\Tests\Functional\UserWithoutEquatable;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException; use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\User\User;
use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface; use Symfony\Component\Security\Core\User\UserProviderInterface;
@ -52,6 +54,6 @@ class ArrayUserProvider implements UserProviderInterface
public function supportsClass($class) public function supportsClass($class)
{ {
return 'Symfony\Component\Security\Core\User\User' === $class; return User::class === $class || UserWithoutEquatable::class === $class;
} }
} }