Skip to content

Commit

Permalink
[Form] add test to avoid regression of symfony#14891
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jun 7, 2015
1 parent 75d5d54 commit 12a19c8
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -17,7 +17,9 @@ class ValidatorExtensionTest extends \PHPUnit_Framework_TestCase
{
public function test2Dot5ValidationApi()
{
$validator = $this->getMock('Symfony\Component\Validator\Validator\ValidatorInterface');
$validator = $this->getMockBuilder('Symfony\Component\Validator\Validator\RecursiveValidator')
->disableOriginalConstructor()
->getMock();
$metadata = $this->getMockBuilder('Symfony\Component\Validator\Mapping\ClassMetadata')
->disableOriginalConstructor()
->getMock();
Expand All @@ -36,6 +38,10 @@ public function test2Dot5ValidationApi()
->method('addPropertyConstraint')
->with('children', $this->isInstanceOf('Symfony\Component\Validator\Constraints\Valid'));

$validator
->expects($this->never())
->method('getMetadataFactory');

$extension = new ValidatorExtension($validator);
$guesser = $extension->loadTypeGuesser();

Expand Down

0 comments on commit 12a19c8

Please sign in to comment.