Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3d7d58f

Browse filesBrowse files
authored
Fix test
1 parent ab8aa18 commit 3d7d58f
Copy full SHA for 3d7d58f

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testAttributes()
4646

4747
[$bConstraint] = $metadata->properties['b']->getConstraints();
4848
self::assertFalse($bConstraint->traverse);
49-
self::assertSame(['Default', 'ValidDummy'], $bConstraint->groups);
49+
self::assertSame(['traverse_group'], $bConstraint->groups);
5050

5151
[$cConstraint] = $metadata->properties['c']->getConstraints();
5252
self::assertSame(['my_group'], $cConstraint->groups);
@@ -59,7 +59,7 @@ class ValidDummy
5959
#[Valid]
6060
private $a;
6161

62-
#[Valid(traverse: false)]
62+
#[Valid(groups: ['traverse_group'], traverse: false)] // Needs a group to work at all for this test
6363
private $b;
6464

6565
#[Valid(groups: ['my_group'], payload: 'some attached data')]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.