@@ -637,6 +637,10 @@ public function testShouldThrowIfPackageShouldBeInstalledToUseTransport()
637
637
638
638
public function testShouldLoadProcessAutoconfigureChildDefinition ()
639
639
{
640
+ if (30300 >= Kernel::VERSION_ID ) {
641
+ $ this ->markTestSkipped ('The autoconfigure feature is available since Symfony 3.3 version ' );
642
+ }
643
+
640
644
$ container = $ this ->getContainerBuilder (true );
641
645
$ extension = new EnqueueExtension ();
642
646
@@ -645,19 +649,15 @@ public function testShouldLoadProcessAutoconfigureChildDefinition()
645
649
'transport ' => [],
646
650
]], $ container );
647
651
648
- if (method_exists ($ container , 'registerForAutoconfiguration ' )) {
649
- $ autoconfigured = $ container ->getAutoconfiguredInstanceof ();
652
+ $ autoconfigured = $ container ->getAutoconfiguredInstanceof ();
650
653
651
- self ::assertArrayHasKey (CommandSubscriberInterface::class, $ autoconfigured );
652
- self ::assertTrue ($ autoconfigured [CommandSubscriberInterface::class]->hasTag ('enqueue.client.processor ' ));
653
- self ::assertTrue ($ autoconfigured [CommandSubscriberInterface::class]->isPublic ());
654
+ self ::assertArrayHasKey (CommandSubscriberInterface::class, $ autoconfigured );
655
+ self ::assertTrue ($ autoconfigured [CommandSubscriberInterface::class]->hasTag ('enqueue.client.processor ' ));
656
+ self ::assertTrue ($ autoconfigured [CommandSubscriberInterface::class]->isPublic ());
654
657
655
- self ::assertArrayHasKey (TopicSubscriberInterface::class, $ autoconfigured );
656
- self ::assertTrue ($ autoconfigured [TopicSubscriberInterface::class]->hasTag ('enqueue.client.processor ' ));
657
- self ::assertTrue ($ autoconfigured [TopicSubscriberInterface::class]->isPublic ());
658
- } else {
659
- $ this ->assertTrue (true );
660
- }
658
+ self ::assertArrayHasKey (TopicSubscriberInterface::class, $ autoconfigured );
659
+ self ::assertTrue ($ autoconfigured [TopicSubscriberInterface::class]->hasTag ('enqueue.client.processor ' ));
660
+ self ::assertTrue ($ autoconfigured [TopicSubscriberInterface::class]->isPublic ());
661
661
}
662
662
663
663
/**
0 commit comments