@@ -39,7 +39,7 @@ class DoctrineLoaderTest extends TestCase
39
39
public function testLoadClassMetadata ()
40
40
{
41
41
$ validator = Validation::createValidatorBuilder ()
42
- ->enableAnnotationMapping ( true )
42
+ ->enableAttributeMapping ( )
43
43
->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{^Symfony \\\\Bridge \\\\Doctrine \\\\Tests \\\\Fixtures \\\\DoctrineLoader} ' ))
44
44
->getValidator ()
45
45
;
@@ -142,7 +142,7 @@ public function testExtractEnum()
142
142
{
143
143
$ validator = Validation::createValidatorBuilder ()
144
144
->addMethodMapping ('loadValidatorMetadata ' )
145
- ->enableAnnotationMapping ( true )
145
+ ->enableAttributeMapping ( )
146
146
->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{^Symfony \\\\Bridge \\\\Doctrine \\\\Tests \\\\Fixtures \\\\DoctrineLoader} ' ))
147
147
->getValidator ()
148
148
;
@@ -159,7 +159,7 @@ public function testExtractEnum()
159
159
public function testFieldMappingsConfiguration ()
160
160
{
161
161
$ validator = Validation::createValidatorBuilder ()
162
- ->enableAnnotationMapping ( true )
162
+ ->enableAttributeMapping ( )
163
163
->addXmlMappings ([__DIR__ .'/../Resources/validator/BaseUser.xml ' ])
164
164
->addLoader (
165
165
new DoctrineLoader (
@@ -200,7 +200,7 @@ public static function regexpProvider(): array
200
200
public function testClassNoAutoMapping ()
201
201
{
202
202
$ validator = Validation::createValidatorBuilder ()
203
- ->enableAnnotationMapping ( true )
203
+ ->enableAttributeMapping ( )
204
204
->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{.*} ' ))
205
205
->getValidator ();
206
206
0 commit comments