File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Tests/Validator/Constraints Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \Security \Core \Tests \Validator \Constraints ;
1313
14- use Foo \Bar \User ;
1514use Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface ;
1615use Symfony \Component \Security \Core \Encoder \EncoderFactoryInterface ;
1716use Symfony \Component \Security \Core \Encoder \PasswordEncoderInterface ;
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$ ' ;
@@ -119,7 +118,7 @@ public function emptyPasswordData()
119118 public function testUserIsNotValid ()
120119 {
121120 $ this ->expectException (ConstraintDefinitionException::class);
122- $ user = $ this -> createMock (User::class );
121+ $ user = new \ stdClass ( );
123122
124123 $ this ->tokenStorage = $ this ->createTokenStorage ($ user );
125124 $ this ->validator = $ this ->createValidator ();
You can’t perform that action at this time.
0 commit comments