File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Tests/Extension/Validator/Type Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,9 @@ abstract class TypeTestCase extends BaseTypeTestCase
2020
2121 protected function setUp ()
2222 {
23- $ this ->validator = $ this ->getMockBuilder ('Symfony\Component\Validator\ValidatorInterface ' )->getMock ();
24- $ metadataFactory = $ this ->getMockBuilder ('Symfony\Component\Validator\MetadataFactoryInterface ' )->getMock ();
25- $ this ->validator ->expects ($ this ->once ())->method ('getMetadataFactory ' )->will ($ this ->returnValue ($ metadataFactory ));
23+ $ this ->validator = $ this ->getMockBuilder ('Symfony\Component\Validator\Validator\ValidatorInterface ' )->getMock ();
2624 $ metadata = $ this ->getMockBuilder ('Symfony\Component\Validator\Mapping\ClassMetadata ' )->disableOriginalConstructor ()->getMock ();
27- $ metadataFactory ->expects ($ this ->once ())->method ('getMetadataFor ' )->will ($ this ->returnValue ($ metadata ));
25+ $ this -> validator ->expects ($ this ->once ())->method ('getMetadataFor ' )->will ($ this ->returnValue ($ metadata ));
2826
2927 parent ::setUp ();
3028 }
You can’t perform that action at this time.
0 commit comments