Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16f40ca

Browse files
minor #59799 [Validator] Fix incorrect assertion in WhenTest (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [Validator] Fix incorrect assertion in `WhenTest` | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- e71a278 [Validator] Fix incorrect assertion in `WhenTest`
2 parents 5c66fcc + e71a278 commit 16f40ca

File tree

1 file changed

+2
-2
lines changed
  • src/Symfony/Component/Validator/Tests/Constraints

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function testAnnotations()
8989

9090
[$barConstraint] = $metadata->properties['bar']->getConstraints();
9191

92-
self::assertInstanceOf(When::class, $fooConstraint);
92+
self::assertInstanceOf(When::class, $barConstraint);
9393
self::assertSame('false', $barConstraint->expression);
9494
self::assertEquals([
9595
new NotNull([
@@ -161,7 +161,7 @@ public function testAttributes()
161161

162162
[$barConstraint] = $metadata->properties['bar']->getConstraints();
163163

164-
self::assertInstanceOf(When::class, $fooConstraint);
164+
self::assertInstanceOf(When::class, $barConstraint);
165165
self::assertSame('false', $barConstraint->expression);
166166
self::assertEquals([
167167
new NotNull([

0 commit comments

Comments
 (0)