@@ -79,7 +79,6 @@ public function testFixManagersAutoMappingsWithTwoAutomappings()
79
79
80
80
$ reflection = new \ReflectionClass (\get_class ($ this ->extension ));
81
81
$ method = $ reflection ->getMethod ('fixManagersAutoMappings ' );
82
- $ method ->setAccessible (true );
83
82
84
83
$ method ->invoke ($ this ->extension , $ emConfigs , $ bundles );
85
84
}
@@ -168,7 +167,6 @@ public function testFixManagersAutoMappings(array $originalEm1, array $originalE
168
167
169
168
$ reflection = new \ReflectionClass (\get_class ($ this ->extension ));
170
169
$ method = $ reflection ->getMethod ('fixManagersAutoMappings ' );
171
- $ method ->setAccessible (true );
172
170
173
171
$ newEmConfigs = $ method ->invoke ($ this ->extension , $ emConfigs , $ bundles );
174
172
@@ -186,7 +184,6 @@ public function testMappingTypeDetection()
186
184
187
185
$ reflection = new \ReflectionClass (\get_class ($ this ->extension ));
188
186
$ method = $ reflection ->getMethod ('detectMappingType ' );
189
- $ method ->setAccessible (true );
190
187
191
188
// The ordinary fixtures contain annotation
192
189
$ mappingType = $ method ->invoke ($ this ->extension , __DIR__ .'/../Fixtures ' , $ container );
@@ -329,7 +326,6 @@ public function testBundleAutoMapping(string $bundle, string $expectedType, stri
329
326
330
327
$ reflection = new \ReflectionClass (\get_class ($ this ->extension ));
331
328
$ method = $ reflection ->getMethod ('getMappingDriverBundleConfigDefaults ' );
332
- $ method ->setAccessible (true );
333
329
334
330
$ this ->assertSame (
335
331
[
@@ -347,8 +343,6 @@ protected function invokeLoadCacheDriver(array $objectManager, ContainerBuilder
347
343
{
348
344
$ method = new \ReflectionMethod ($ this ->extension , 'loadObjectManagerCacheDriver ' );
349
345
350
- $ method ->setAccessible (true );
351
-
352
346
$ method ->invokeArgs ($ this ->extension , [$ objectManager , $ container , $ cacheName ]);
353
347
}
354
348
0 commit comments