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
46
46
public function testLoadClassMetadata ()
47
47
{
48
48
$ validator = Validation::createValidatorBuilder ()
49
- ->enableAnnotationMapping ()
49
+ ->enableAnnotationMapping (true )
50
+ ->addDefaultDoctrineAnnotationReader ()
50
51
->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{^Symfony \\\\Bridge \\\\Doctrine \\\\Tests \\\\Fixtures \\\\DoctrineLoader} ' ))
51
52
->getValidator ()
52
53
;
@@ -151,7 +152,8 @@ public function testLoadClassMetadata()
151
152
public function testFieldMappingsConfiguration ()
152
153
{
153
154
$ validator = Validation::createValidatorBuilder ()
154
- ->enableAnnotationMapping ()
155
+ ->enableAnnotationMapping (true )
156
+ ->addDefaultDoctrineAnnotationReader ()
155
157
->addXmlMappings ([__DIR__ .'/../Resources/validator/BaseUser.xml ' ])
156
158
->addLoader (
157
159
new DoctrineLoader (
@@ -192,7 +194,8 @@ public function regexpProvider()
192
194
public function testClassNoAutoMapping ()
193
195
{
194
196
$ validator = Validation::createValidatorBuilder ()
195
- ->enableAnnotationMapping ()
197
+ ->enableAnnotationMapping (true )
198
+ ->addDefaultDoctrineAnnotationReader ()
196
199
->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{.*} ' ))
197
200
->getValidator ();
198
201
You can’t perform that action at this time.
0 commit comments