File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ protected function setUp(): void
4646 public function testLoadClassMetadata ()
4747 {
4848 $ validator = Validation::createValidatorBuilder ()
49- ->enableAnnotationMapping ()
49+ ->enableAnnotationMapping (true )
50+ ->addDefaultDoctrineAnnotationReader ()
5051 ->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{^Symfony \\\\Bridge \\\\Doctrine \\\\Tests \\\\Fixtures \\\\DoctrineLoader} ' ))
5152 ->getValidator ()
5253 ;
@@ -151,7 +152,8 @@ public function testLoadClassMetadata()
151152 public function testFieldMappingsConfiguration ()
152153 {
153154 $ validator = Validation::createValidatorBuilder ()
154- ->enableAnnotationMapping ()
155+ ->enableAnnotationMapping (true )
156+ ->addDefaultDoctrineAnnotationReader ()
155157 ->addXmlMappings ([__DIR__ .'/../Resources/validator/BaseUser.xml ' ])
156158 ->addLoader (
157159 new DoctrineLoader (
@@ -192,7 +194,8 @@ public function regexpProvider()
192194 public function testClassNoAutoMapping ()
193195 {
194196 $ validator = Validation::createValidatorBuilder ()
195- ->enableAnnotationMapping ()
197+ ->enableAnnotationMapping (true )
198+ ->addDefaultDoctrineAnnotationReader ()
196199 ->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{.*} ' ))
197200 ->getValidator ();
198201
You can’t perform that action at this time.
0 commit comments