Skip to content

Commit

Permalink
[Validator] ConstraintValidatorTestCase: add missing return value to …
Browse files Browse the repository at this point in the history
…mocked validate method calls
  • Loading branch information
ogizanagi committed Nov 19, 2019
1 parent b104760 commit 8d1f326
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -177,7 +177,8 @@ protected function expectValidateAt($i, $propertyPath, $value, $group)
->willReturn($validator);
$validator->expects($this->at(2 * $i + 1))
->method('validate')
->with($value, $this->logicalOr(null, [], $this->isInstanceOf('\Symfony\Component\Validator\Constraints\Valid')), $group);
->with($value, $this->logicalOr(null, [], $this->isInstanceOf('\Symfony\Component\Validator\Constraints\Valid')), $group)
->willReturn($validator);
}

protected function expectValidateValueAt($i, $propertyPath, $value, $constraints, $group = null)
Expand All @@ -189,7 +190,8 @@ protected function expectValidateValueAt($i, $propertyPath, $value, $constraints
->willReturn($contextualValidator);
$contextualValidator->expects($this->at(2 * $i + 1))
->method('validate')
->with($value, $constraints, $group);
->with($value, $constraints, $group)
->willReturn($contextualValidator);
}

protected function assertNoViolation()
Expand Down

0 comments on commit 8d1f326

Please sign in to comment.