bug #37853 [Validator] ensure that the validator is a mock object for backwards-compatibility (xabbuh)
This PR was merged into the 3.4 branch.
Discussion
----------
[Validator] ensure that the validator is a mock object for backwards-compatibility
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets |
| License | MIT
| Doc PR |
I accidentally broke the class in #37808. The validator was a mock object before (see the failing tests on the `5.1` branch).
Commits
-------
1c9b6714c7
ensure that the validator is a mock object for backwards-compatibility
This commit is contained in:
commit
58166dfd75
@ -115,7 +115,7 @@ abstract class ConstraintValidatorTestCase extends TestCase
|
||||
$validator->expects($this->any())
|
||||
->method('inContext')
|
||||
->with($context)
|
||||
->willReturn(new AssertingContextualValidator());
|
||||
->willReturn($this->createMock(AssertingContextualValidator::class));
|
||||
|
||||
return $context;
|
||||
}
|
||||
|
Reference in New Issue
Block a user