File tree 1 file changed +7
-1
lines changed
src/Symfony/Component/Form/Tests/Extension/Validator
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ class ValidatorExtensionTest extends \PHPUnit_Framework_TestCase
17
17
{
18
18
public function test2Dot5ValidationApi ()
19
19
{
20
- $ validator = $ this ->getMock ('Symfony\Component\Validator\Validator\ValidatorInterface ' );
20
+ $ validator = $ this ->getMockBuilder ('Symfony\Component\Validator\Validator\RecursiveValidator ' )
21
+ ->disableOriginalConstructor ()
22
+ ->getMock ();
21
23
$ metadata = $ this ->getMockBuilder ('Symfony\Component\Validator\Mapping\ClassMetadata ' )
22
24
->disableOriginalConstructor ()
23
25
->getMock ();
@@ -36,6 +38,10 @@ public function test2Dot5ValidationApi()
36
38
->method ('addPropertyConstraint ' )
37
39
->with ('children ' , $ this ->isInstanceOf ('Symfony\Component\Validator\Constraints\Valid ' ));
38
40
41
+ $ validator
42
+ ->expects ($ this ->never ())
43
+ ->method ('getMetadataFactory ' );
44
+
39
45
$ extension = new ValidatorExtension ($ validator );
40
46
$ guesser = $ extension ->loadTypeGuesser ();
41
47
You can’t perform that action at this time.
0 commit comments