Skip to content

Commit

Permalink
Remove DoctrineExtensionTest::testAnnotationsBundleMappingDetection
Browse files Browse the repository at this point in the history
  • Loading branch information
MatTheCat committed Nov 4, 2024
1 parent 099f141 commit b814469
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions tests/DependencyInjection/DoctrineExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineTransportFactory;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;

use function array_values;
use function class_exists;
Expand Down Expand Up @@ -823,39 +822,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
{
Expand Down

0 comments on commit b814469

Please sign in to comment.