Skip to content

Commit b2afcb2

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [FrameworkBundle][Validator] Deprecate annotation occurrences
2 parents 57d61cf + f238619 commit b2afcb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Validator/Constraints/UserPasswordTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
1616
use Symfony\Component\Validator\Mapping\ClassMetadata;
17-
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
17+
use Symfony\Component\Validator\Mapping\Loader\AttributeLoader;
1818

1919
class UserPasswordTest extends TestCase
2020
{
@@ -40,15 +40,15 @@ public static function provideServiceValidatedConstraints(): iterable
4040
yield 'named arguments' => [new UserPassword(service: 'my_service')];
4141

4242
$metadata = new ClassMetadata(UserPasswordDummy::class);
43-
self::assertTrue((new AnnotationLoader())->loadClassMetadata($metadata));
43+
self::assertTrue((new AttributeLoader())->loadClassMetadata($metadata));
4444

4545
yield 'attribute' => [$metadata->properties['b']->constraints[0]];
4646
}
4747

4848
public function testAttributes()
4949
{
5050
$metadata = new ClassMetadata(UserPasswordDummy::class);
51-
self::assertTrue((new AnnotationLoader())->loadClassMetadata($metadata));
51+
self::assertTrue((new AttributeLoader())->loadClassMetadata($metadata));
5252

5353
[$bConstraint] = $metadata->properties['b']->getConstraints();
5454
self::assertSame('myMessage', $bConstraint->message);

0 commit comments

Comments
 (0)