8000 [Validator] ConstraintValidatorTestCase: add missing return value to … · symfony/symfony@8d1f326 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d1f326

Browse files
committed
[Validator] ConstraintValidatorTestCase: add missing return value to mocked validate method calls
1 parent b104760 commit 8d1f326

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ protected function expectValidateAt($i, $propertyPath, $value, $group)
177177
->willReturn($validator);
178178
$validator->expects($this->at(2 * $i + 1))
179179
->method('validate')
180-
->with($value, $this->logicalOr(null, [], $this->isInstanceOf('\Symfony\Component\Validator\Constraints\Valid')), $group);
180+
->with($value, $this->logicalOr(null, [], $this->isInstanceOf('\Symfony\Component\Validator\Constraints\Valid')), $group)
181+
->willReturn($validator);
181182
}
182183

183184
protected function expectValidateValueAt($i, $propertyPath, $value, $constraints, $group = null)
@@ -189,7 +190,8 @@ protected function expectValidateValueAt($i, $propertyPath, $value, $constraints
189190
->willReturn($contextualValidator);
190191
$contextualValidator->expects($this->at(2 * $i + 1))
191192
->method('validate')
192-
->with($value, $constraints, $group);
193+
->with($value, $constraints, $group)
194+
->willReturn($contextualValidator);
193195
}
194196

195197
protected function assertNoViolation()

0 commit comments

Comments
 (0)
0