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 12
12
namespace Symfony \Bundle \FrameworkBundle \Tests \DependencyInjection ;
13
13
14
14
use Doctrine \Common \Annotations \Annotation ;
15
+ use Symfony \Bridge \Doctrine \ContainerAwareEventManager ;
15
16
use Symfony \Bundle \FullStack ;
16
17
use Symfony \Bundle \FrameworkBundle \Tests \TestCase ;
17
18
use Symfony \Bundle \FrameworkBundle \DependencyInjection \Compiler \AddAnnotationsCachedReaderPass ;
@@ -497,6 +498,10 @@ public function testMessenger()
497
498
498
499
public function testMessengerDoctrine ()
499
500
{
501
+ if (!class_exists (ContainerAwareEventManager::class)) {
502
+ self ::markTestSkipped ('Skipping tests since Doctrine bridge is not installed ' );
503
+ }
504
+
500
505
$ container = $ this ->createContainerFromFile ('messenger_doctrine ' );
501
506
$ this ->assertTrue ($ container ->hasDefinition ('messenger.middleware.doctrine_transaction ' ));
502
507
$ def = $ container ->getDefinition ('messenger.middleware.doctrine_transaction ' );
You can’t perform that action at this time.
0 commit comments