28
28
use Symfony \Component \Validator \Mapping \ClassMetadata ;
29
29
use Symfony \Component \Validator \Mapping \PropertyMetadata ;
30
30
use Symfony \Component \Validator \Mapping \TraversalStrategy ;
31
- use Symfony \Component \Validator \Tests \Fixtures \Entity ;
31
+ use Symfony \Component \Validator \Tests \Fixtures \NestedAttribute \ Entity ;
32
32
use Symfony \Component \Validator \Validation ;
33
33
34
34
/**
@@ -40,7 +40,6 @@ public function testLoadClassMetadata()
40
40
{
41
41
$ validator = Validation::createValidatorBuilder ()
42
42
->enableAnnotationMapping (true )
43
- ->addDefaultDoctrineAnnotationReader ()
44
43
->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{^Symfony \\\\Bridge \\\\Doctrine \\\\Tests \\\\Fixtures \\\\DoctrineLoader} ' ))
45
44
->getValidator ()
46
45
;
@@ -144,7 +143,6 @@ public function testExtractEnum()
144
143
$ validator = Validation::createValidatorBuilder ()
145
144
->addMethodMapping ('loadValidatorMetadata ' )
146
145
->enableAnnotationMapping (true )
147
- ->addDefaultDoctrineAnnotationReader ()
148
146
->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{^Symfony \\\\Bridge \\\\Doctrine \\\\Tests \\\\Fixtures \\\\DoctrineLoader} ' ))
149
147
->getValidator ()
150
148
;
@@ -162,7 +160,6 @@ public function testFieldMappingsConfiguration()
162
160
{
163
161
$ validator = Validation::createValidatorBuilder ()
164
162
->enableAnnotationMapping (true )
165
- ->addDefaultDoctrineAnnotationReader ()
166
163
->addXmlMappings ([__DIR__ .'/../Resources/validator/BaseUser.xml ' ])
167
164
->addLoader (
168
165
new DoctrineLoader (
@@ -204,7 +201,6 @@ public function testClassNoAutoMapping()
204
201
{
205
202
$ validator = Validation::createValidatorBuilder ()
206
203
->enableAnnotationMapping (true )
207
- ->addDefaultDoctrineAnnotationReader ()
208
204
->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{.*} ' ))
209
205
->getValidator ();
210
206
0 commit comments