File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -294,31 +294,6 @@ public function testCustomConnection(): void
294294 self ::assertCount (2 , $ tags );
295295 }
296296
297- public function testPrefersEntityManagerOverConnection (): void
298- {
299- $ config = [
300- 'migrations_paths ' => ['DoctrineMigrationsTest ' => 'a ' ],
301- ];
302- $ ormConfig = PHP_VERSION_ID < 80400 && trait_exists (LazyGhostTrait::class) && class_exists (CacheCompatibilityPass::class)
303- ? ['enable_lazy_ghost_objects ' => true ] : [];
304- if (InstalledVersions::satisfies (new VersionParser (), 'doctrine/doctrine-bundle ' , '^2.7.1 ' )) {
305- $ ormConfig ['controller_resolver ' ] = ['auto_mapping ' => false ];
306- }
307-
308- if (PHP_VERSION_ID >= 80400 && class_exists (DisconnectedMetadataFactory::class)) {
309- $ ormConfig ['enable_native_lazy_objects ' ] = true ;
310- }
311-
312- $ container = $ this ->getContainer ($ config , null , $ ormConfig );
313-
314- $ container ->compile ();
315-
316- $ di = $ container ->get ('doctrine.migrations.dependency_factory ' );
317-
318- self ::assertInstanceOf (DependencyFactory::class, $ di );
319- $ di ->getEntityManager ();
320- }
321-
322297 public function testNoEntityManagersConfigured (): void
323298 {
324299 $ config = ['em ' => null ];
You can’t perform that action at this time.
0 commit comments