File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Tests/Validator/Constraints Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ public function testAttributes()
27
27
$ loader = new AttributeLoader ();
28
28
self ::assertTrue ($ loader ->loadClassMetadata ($ metadata ));
29
29
30
- [$ bConstraint ] = $ metadata ->properties [ 'b ' ]->getConstraints ();
30
+ [$ bConstraint ] = $ metadata ->getPropertyMetadata ( 'b ' )[ 0 ]->getConstraints ();
31
31
self ::assertSame ('myMessage ' , $ bConstraint ->message );
32
32
self ::assertSame (['Default ' , 'TwigDummy ' ], $ bConstraint ->groups );
33
33
34
- [$ cConstraint ] = $ metadata ->properties [ 'c ' ]->getConstraints ();
34
+ [$ cConstraint ] = $ metadata ->getPropertyMetadata ( 'c ' )[ 0 ]->getConstraints ();
35
35
self ::assertSame (['my_group ' ], $ cConstraint ->groups );
36
36
self ::assertSame ('some attached data ' , $ cConstraint ->payload );
37
37
38
- [$ dConstraint ] = $ metadata ->properties [ 'd ' ]->getConstraints ();
38
+ [$ dConstraint ] = $ metadata ->getPropertyMetadata ( 'd ' )[ 0 ]->getConstraints ();
39
39
self ::assertFalse ($ dConstraint ->skipDeprecations );
40
40
}
41
41
}
You can’t perform that action at this time.
0 commit comments