[Security] Don't skip UserPasswordValidatorTest

This commit is contained in:
Robin Chalas 2021-07-03 23:17:34 +02:00
parent 46309e5814
commit 629e6987e6
No known key found for this signature in database
GPG Key ID: 89672113756EE03B
1 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,6 @@
namespace Symfony\Component\Security\Core\Tests\Validator\Constraints;
use Foo\Bar\User;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface;
@ -25,7 +24,7 @@ use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
abstract class UserPasswordValidatorTest extends ConstraintValidatorTestCase
class UserPasswordValidatorTest extends ConstraintValidatorTestCase
{
private const PASSWORD = 's3Cr3t';
private const SALT = '^S4lt$';
@ -119,7 +118,7 @@ abstract class UserPasswordValidatorTest extends ConstraintValidatorTestCase
public function testUserIsNotValid()
{
$this->expectException(ConstraintDefinitionException::class);
$user = $this->createMock(User::class);
$user = new \stdClass();
$this->tokenStorage = $this->createTokenStorage($user);
$this->validator = $this->createValidator();