Skip to content

Commit 4637bf0

Browse files
committed
feat(when constraint): pass context and root
1 parent fc9d69b commit 4637bf0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Validator/Tests/Constraints/WhenValidatorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function testConstraintsAreExecutedWithNestedObject()
9696

9797
$this->setObject($parent);
9898
$this->setPropertyPath('child.value');
99+
$this->setRoot($parent);
99100

100101
$constraints = [
101102
new PositiveOrZero(),

0 commit comments

Comments
 (0)