10000 Add validate method to mockec validator in form TypeTestCase · symfony/symfony@4013e7b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4013e7b

Browse files
committed
Add validate method to mockec validator in form TypeTestCase
1 parent 7311ef3 commit 4013e7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Form/Tests/Extension/Validator/Type/TypeTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ protected function setUp()
2323
$this->validator = $this->getMockBuilder('Symfony\Component\Validator\Validator\ValidatorInterface')->getMock();
2424
$metadata = $this->getMockBuilder('Symfony\Component\Validator\Mapping\ClassMetadata')->disableOriginalConstructor()->getMock();
2525
$this->validator->expects($this->once())->method('getMetadataFor')->will($this->returnValue($metadata));
26+
$this->validator->expects($this->any())->method('validate')->will($this->returnValue(array()));
2627

2728
parent::setUp();
2829
}

0 commit comments

Comments
 (0)
0