Skip to content

Commit d6f2bc8

Browse files
[Validator] Fix incorrect assertion in WhenTest
1 parent f4db21a commit d6f2bc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Constraints/WhenTest.php

Lines changed: 2 additions & 2 deletions
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)