Skip to content

Commit 29e1ee8

Browse files
minor symfony#59566 [Validator] Fix Url constraint attribute assertion (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- [Validator] Fix `Url` constraint attribute assertion | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- f3124d1 [Validator] Fix `Url` constraint attribute assertion
2 parents bfe7569 + f3124d1 commit 29e1ee8

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ public function testAttributes()
6868
self::assertFalse($cConstraint->requireTld);
6969

7070
[$dConstraint] = $metadata->properties['d']->getConstraints();
71-
self::assertSame(['http', 'https'], $aConstraint->protocols);
72-
self::assertFalse($aConstraint->relativeProtocol);
73-
self::assertNull($aConstraint->normalizer);
71+
self::assertSame(['http', 'https'], $dConstraint->protocols);
72+
self::assertFalse($dConstraint->relativeProtocol);
73+
self::assertNull($dConstraint->normalizer);
7474
self::assertTrue($dConstraint->requireTld);
7575
}
7676

0 commit comments

Comments
 (0)