Skip to content

Commit 0172c98

Browse files
Minor fixes found while ugrading the CI
1 parent 1306828 commit 0172c98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/Extension/Validator/Type/TypeTestCase.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)