Skip to content

Commit 4e053ac

Browse files
committed
Remove meaningless test
I think that test lost its meaning in 120cca6 Right now, it only performs one assertion, and with the proper configuration, static analysis would be enough to check it.
1 parent e0569c1 commit 4e053ac

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/DependencyInjection/DoctrineMigrationsExtensionTest.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff 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];

0 commit comments

Comments
 (0)