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 11
11
12
12
namespace Symfony \Component \Security \Core \Tests \Validator \Constraints ;
13
13
14
- use Foo \Bar \User ;
15
14
use Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface ;
16
15
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
17
16
use Symfony \Component \Security \Core \Encoder \EncoderFactoryInterface ;
25
24
/**
26
25
* @author Bernhard Schussek <bschussek@gmail.com>
27
26
*/
28
- abstract class UserPasswordValidatorTest extends ConstraintValidatorTestCase
27
+ class UserPasswordValidatorTest extends ConstraintValidatorTestCase
29
28
{
30
29
private const PASSWORD = 's3Cr3t ' ;
31
30
private const SALT = '^S4lt$ ' ;
@@ -126,7 +125,7 @@ public function emptyPasswordData()
126
125
public function testUserIsNotValid ()
127
126
{
128
127
$ this ->expectException (ConstraintDefinitionException::class);
129
- $ user = $ this -> createMock (User::class );
128
+ $ user = new \ stdClass ( );
130
129
131
130
$ this ->tokenStorage = $ this ->createTokenStorage ($ user );
132
131
$ this ->validator = $ this ->createValidator ();
You can’t perform that action at this time.
0 commit comments