File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1313
1414use Doctrine \Common \Collections \ArrayCollection ;
1515use Doctrine \DBAL \Types \Type ;
16+ use Doctrine \ORM \Mapping \ClassMetadataInfo ;
1617use Doctrine \ORM \Tools \SchemaTool ;
1718use Doctrine \Persistence \ManagerRegistry ;
18- use Doctrine \Persistence \Mapping \ClassMetadata ;
1919use Doctrine \Persistence \ObjectManager ;
2020use Doctrine \Persistence \ObjectRepository ;
2121use Symfony \Bridge \Doctrine \Tests \DoctrineTestHelper ;
@@ -111,7 +111,7 @@ protected function createEntityManagerMock($repositoryMock)
111111 ->willReturn ($ repositoryMock )
112112 ;
113113
114- $ classMetadata = $ this ->createMock (ClassMetadata ::class);
114+ $ classMetadata = $ this ->createMock (ClassMetadataInfo ::class);
115115 $ classMetadata
116116 ->expects ($ this ->any ())
117117 ->method ('hasField ' )
Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ public function testExtractEnum()
159159
160160 $ validator = Validation::createValidatorBuilder ()
161161 ->addMethodMapping ('loadValidatorMetadata ' )
162- ->enableAnnotationMapping ()
162+ ->enableAnnotationMapping (true )
163+ ->addDefaultDoctrineAnnotationReader ()
163164 ->addLoader (new DoctrineLoader (DoctrineTestHelper::createTestEntityManager (), '{^Symfony \\\\Bridge \\\\Doctrine \\\\Tests \\\\Fixtures \\\\DoctrineLoader} ' ))
164165 ->getValidator ()
165166 ;
You can’t perform that action at this time.
0 commit comments