Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / validator / Tests / Mapping / Loader / AnnotationLoaderTest.php
index ba7099201158e9b23d2f854cf5d47ad6c6a4cdb2..5765a838d13733f152070a5b8035a8c106cb4171 100644 (file)
@@ -20,6 +20,7 @@ use Symfony\Component\Validator\Constraints\Collection;
 use Symfony\Component\Validator\Constraints\NotNull;
 use Symfony\Component\Validator\Constraints\Range;
 use Symfony\Component\Validator\Constraints\IsTrue;
+use Symfony\Component\Validator\Constraints\Valid;
 use Symfony\Component\Validator\Mapping\ClassMetadata;
 use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
 use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
@@ -68,6 +69,8 @@ class AnnotationLoaderTest extends TestCase
             'message' => 'Must be one of %choices%',
             'choices' => array('A', 'B'),
         )));
+        $expected->addPropertyConstraint('childA', new Valid());
+        $expected->addPropertyConstraint('childB', new Valid());
         $expected->addGetterConstraint('lastName', new NotNull());
         $expected->addGetterMethodConstraint('valid', 'isValid', new IsTrue());
         $expected->addGetterConstraint('permissions', new IsTrue());
@@ -138,6 +141,8 @@ class AnnotationLoaderTest extends TestCase
             'message' => 'Must be one of %choices%',
             'choices' => array('A', 'B'),
         )));
+        $expected->addPropertyConstraint('childA', new Valid());
+        $expected->addPropertyConstraint('childB', new Valid());
         $expected->addGetterConstraint('lastName', new NotNull());
         $expected->addGetterMethodConstraint('valid', 'isValid', new IsTrue());
         $expected->addGetterConstraint('permissions', new IsTrue());