Skip to content

Commit d653fb6

Browse files
committed
Fixed tests
1 parent e7cd16e commit d653fb6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection;
1313

1414
use Doctrine\Common\Annotations\Annotation;
15+
use Symfony\Bridge\Doctrine\ContainerAwareEventManager;
1516
use Symfony\Bundle\FullStack;
1617
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
1718
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddAnnotationsCachedReaderPass;
@@ -497,6 +498,10 @@ public function testMessenger()
497498

498499
public function testMessengerDoctrine()
499500
{
501+
if (!class_exists(ContainerAwareEventManager::class)) {
502+
self::markTestSkipped('Skipping tests since Doctrine bridge is not installed');
503+
}
504+
500505
$container = $this->createContainerFromFile('messenger_doctrine');
501506
$this->assertTrue($container->hasDefinition('messenger.middleware.doctrine_transaction'));
502507
$def = $container->getDefinition('messenger.middleware.doctrine_transaction');

0 commit comments

Comments
 (0)