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
20
20
21
21
protected function setUp ()
22
22
{
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 ();
26
24
$ 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 ));
28
26
29
27
parent ::setUp ();
30
28
}
You can’t perform that action at this time.
0 commit comments