Skip to content

Commit 7926b99

Browse files
Merge branch '4.4' into 5.2
* 4.4: Fix SkippedTestSuite [Console] Fix type annotation on InputInterface::hasArgument() Revert "minor #41949 [Console] fix type annotations on InputInterface (nicolas-grekas)" [EventDispatcher] Correct the called event listener method case Add missing translations for Japanese. Revert "bug #41952 [Console] fix handling positional arguments (nicolas-grekas)" [Security] Don't skip UserPasswordValidatorTest [DI] CS fix [Console] fix handling positional arguments [Validator] add translation for Vietnamese Add Bulgarian translation for the validator
2 parents 8a82553 + 108a044 commit 7926b99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/Validator/Constraints/UserPasswordValidatorTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Validator\Constraints;
1313

14-
use Foo\Bar\User;
1514
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1615
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1716
use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
@@ -25,7 +24,7 @@
2524
/**
2625
* @author Bernhard Schussek <bschussek@gmail.com>
2726
*/
28-
abstract class UserPasswordValidatorTest extends ConstraintValidatorTestCase
27+
class UserPasswordValidatorTest extends ConstraintValidatorTestCase
2928
{
3029
private const PASSWORD = 's3Cr3t';
3130
private const SALT = '^S4lt$';
@@ -126,7 +125,7 @@ public function emptyPasswordData()
126125
public function testUserIsNotValid()
127126
{
128127
$this->expectException(ConstraintDefinitionException::class);
129-
$user = $this->createMock(User::class);
128+
$user = new \stdClass();
130129

131130
$this->tokenStorage = $this->createTokenStorage($user);
132131
$this->validator = $this->createValidator();

0 commit comments

Comments
 (0)