From cf5c2f9db4ed4d736888816dc7f894d83200213a Mon Sep 17 00:00:00 2001 From: matlec Date: Mon, 4 Nov 2024 21:30:14 +0100 Subject: [PATCH] Remove `DoctrineExtensionTest::testAnnotationsBundleMappingDetection` --- .../DoctrineExtensionTest.php | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/tests/DependencyInjection/DoctrineExtensionTest.php b/tests/DependencyInjection/DoctrineExtensionTest.php index 8b5cea19..6b0bc875 100644 --- a/tests/DependencyInjection/DoctrineExtensionTest.php +++ b/tests/DependencyInjection/DoctrineExtensionTest.php @@ -823,39 +823,6 @@ public function testXmlBundleMappingDetection(): void ]); } - public function testAnnotationsBundleMappingDetection(): void - { - if (! interface_exists(EntityManagerInterface::class)) { - self::markTestSkipped('This test requires ORM'); - } - - $container = $this->getContainer(['AnnotationsBundle']); - $extension = new DoctrineExtension(); - - $config = BundleConfigurationBuilder::createBuilder() - ->addBaseConnection() - ->addEntityManager([ - 'default_entity_manager' => 'default', - 'entity_managers' => [ - 'default' => [ - 'mappings' => [ - 'AnnotationsBundle' => [], - ], - ], - ], - ]) - ->build(); - $extension->load([$config], $container); - - $definition = $container->getDefinition('doctrine.orm.default_metadata_driver'); - $this->assertDICDefinitionMethodCallOnce($definition, 'addDriver', [ - new Reference(class_exists(AnnotationLoader::class) - ? 'doctrine.orm.default_annotation_metadata_driver' - : 'doctrine.orm.default_attribute_metadata_driver'), - 'Fixtures\Bundles\AnnotationsBundle\Entity', - ]); - } - /** @requires PHP 8 */ public function testAttributesBundleMappingDetection(): void {