Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b814469

Browse filesBrowse files
committed
Remove DoctrineExtensionTest::testAnnotationsBundleMappingDetection
1 parent 099f141 commit b814469
Copy full SHA for b814469

File tree

Expand file treeCollapse file tree

1 file changed

+0
-34
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-34
lines changed

‎tests/DependencyInjection/DoctrineExtensionTest.php

Copy file name to clipboardExpand all lines: tests/DependencyInjection/DoctrineExtensionTest.php
-34Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
use Symfony\Component\DependencyInjection\Reference;
5151
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineTransportFactory;
5252
use Symfony\Component\Messenger\MessageBusInterface;
53-
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
5453

5554
use function array_values;
5655
use function class_exists;
@@ -823,39 +822,6 @@ public function testXmlBundleMappingDetection(): void
823822
]);
824823
}
825824

826-
public function testAnnotationsBundleMappingDetection(): void
827-
{
828-
if (! interface_exists(EntityManagerInterface::class)) {
829-
self::markTestSkipped('This test requires ORM');
830-
}
831-
832-
$container = $this->getContainer(['AnnotationsBundle']);
833-
$extension = new DoctrineExtension();
834-
835-
$config = BundleConfigurationBuilder::createBuilder()
836-
->addBaseConnection()
837-
->addEntityManager([
838-
'default_entity_manager' => 'default',
839-
'entity_managers' => [
840-
'default' => [
841-
'mappings' => [
842-
'AnnotationsBundle' => [],
843-
],
844-
],
845-
],
846-
])
847-
->build();
848-
$extension->load([$config], $container);
849-
850-
$definition = $container->getDefinition('doctrine.orm.default_metadata_driver');
851-
$this->assertDICDefinitionMethodCallOnce($definition, 'addDriver', [
852-
new Reference(class_exists(AnnotationLoader::class)
853-
? 'doctrine.orm.default_annotation_metadata_driver'
854-
: 'doctrine.orm.default_attribute_metadata_driver'),
855-
'Fixtures\Bundles\AnnotationsBundle\Entity',
856-
]);
857-
}
858-
859825
/** @requires PHP 8 */
860826
public function testAttributesBundleMappingDetection(): void
861827
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.