Skip to content

Commit 3d7d58f

Browse files
authored
Fix test
1 parent ab8aa18 commit 3d7d58f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy