File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1212namespace Symfony \Bundle \FrameworkBundle \Tests \DependencyInjection ;
1313
1414use Doctrine \Common \Annotations \Annotation ;
15+ use Symfony \Bridge \Doctrine \ContainerAwareEventManager ;
1516use Symfony \Bundle \FullStack ;
1617use Symfony \Bundle \FrameworkBundle \Tests \TestCase ;
1718use 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 ' );
You can’t perform that action at this time.
0 commit comments