@@ -79,7 +79,6 @@ public function testFixManagersAutoMappingsWithTwoAutomappings()
7979
8080 $ reflection = new \ReflectionClass (\get_class ($ this ->extension ));
8181 $ method = $ reflection ->getMethod ('fixManagersAutoMappings ' );
82- $ method ->setAccessible (true );
8382
8483 $ method ->invoke ($ this ->extension , $ emConfigs , $ bundles );
8584 }
@@ -168,7 +167,6 @@ public function testFixManagersAutoMappings(array $originalEm1, array $originalE
168167
169168 $ reflection = new \ReflectionClass (\get_class ($ this ->extension ));
170169 $ method = $ reflection ->getMethod ('fixManagersAutoMappings ' );
171- $ method ->setAccessible (true );
172170
173171 $ newEmConfigs = $ method ->invoke ($ this ->extension , $ emConfigs , $ bundles );
174172
@@ -186,7 +184,6 @@ public function testMappingTypeDetection()
186184
187185 $ reflection = new \ReflectionClass (\get_class ($ this ->extension ));
188186 $ method = $ reflection ->getMethod ('detectMappingType ' );
189- $ method ->setAccessible (true );
190187
191188 // The ordinary fixtures contain annotation
192189 $ mappingType = $ method ->invoke ($ this ->extension , __DIR__ .'/../Fixtures ' , $ container );
@@ -329,7 +326,6 @@ public function testBundleAutoMapping(string $bundle, string $expectedType, stri
329326
330327 $ reflection = new \ReflectionClass (\get_class ($ this ->extension ));
331328 $ method = $ reflection ->getMethod ('getMappingDriverBundleConfigDefaults ' );
332- $ method ->setAccessible (true );
333329
334330 $ this ->assertSame (
335331 [
@@ -347,8 +343,6 @@ protected function invokeLoadCacheDriver(array $objectManager, ContainerBuilder
347343 {
348344 $ method = new \ReflectionMethod ($ this ->extension , 'loadObjectManagerCacheDriver ' );
349345
350- $ method ->setAccessible (true );
351-
352346 $ method ->invokeArgs ($ this ->extension , [$ objectManager , $ container , $ cacheName ]);
353347 }
354348
0 commit comments