File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/Symfony/Bridge/Doctrine/Tests/Validator Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 25
25
use Symfony \Component \Validator \Mapping \AutoMappingStrategy ;
26
26
use Symfony \Component \Validator \Mapping \CascadingStrategy ;
27
27
use Symfony \Component \Validator \Mapping \ClassMetadata ;
28
+ use Symfony \Component \Validator \Mapping \Loader \AutoMappingTrait ;
28
29
use Symfony \Component \Validator \Mapping \PropertyMetadata ;
29
30
use Symfony \Component \Validator \Mapping \TraversalStrategy ;
30
31
use Symfony \Component \Validator \Tests \Fixtures \Entity ;
@@ -37,9 +38,7 @@ class DoctrineLoaderTest extends TestCase
37
38
{
38
39
protected function setUp (): void
39
40
{
40
- $ validator = Validation::createValidatorBuilder ();
41
-
42
- if (!method_exists ($ validator , 'addDefaultDoctrineAnnotationReader ' )) {
41
+ if (!trait_exists (AutoMappingTrait::class)) {
43
42
$ this ->markTestSkipped ('Auto-mapping requires symfony/validation 4.4+ ' );
44
43
}
45
44
}
You can’t perform that action at this time.
0 commit comments