22
33namespace Enqueue \Bundle \Tests \Unit ;
44
5- use Enqueue \Bundle \DependencyInjection \Compiler \BuildClientExtensionsPass ;
6- use Enqueue \Bundle \DependencyInjection \Compiler \BuildConsumptionExtensionsPass ;
7- use Enqueue \Bundle \DependencyInjection \Compiler \BuildProcessorRegistryPass ;
8- use Enqueue \Bundle \DependencyInjection \Compiler \BuildQueueMetaRegistryPass ;
9- use Enqueue \Bundle \DependencyInjection \Compiler \BuildTopicMetaSubscribersPass ;
105use Enqueue \Bundle \EnqueueBundle ;
116use Enqueue \Test \ClassExtensionTrait ;
127use PHPUnit \Framework \TestCase ;
13- use Symfony \Component \DependencyInjection \ContainerBuilder ;
148use Symfony \Component \HttpKernel \Bundle \Bundle ;
159
1610class EnqueueBundleTest extends TestCase
@@ -26,37 +20,4 @@ public function testCouldBeConstructedWithoutAnyArguments()
2620 {
2721 new EnqueueBundle ();
2822 }
29-
30- public function testShouldRegisterExpectedCompilerPasses ()
31- {
32- $ container = $ this ->createMock (ContainerBuilder::class);
33- $ container
34- ->expects ($ this ->at (0 ))
35- ->method ('addCompilerPass ' )
36- ->with ($ this ->isInstanceOf (BuildConsumptionExtensionsPass::class))
37- ;
38- $ container
39- ->expects ($ this ->at (2 ))
40- ->method ('addCompilerPass ' )
41- ->with ($ this ->isInstanceOf (BuildProcessorRegistryPass::class))
42- ;
43- $ container
44- ->expects ($ this ->at (3 ))
45- ->method ('addCompilerPass ' )
46- ->with ($ this ->isInstanceOf (BuildTopicMetaSubscribersPass::class))
47- ;
48- $ container
49- ->expects ($ this ->at (4 ))
50- ->method ('addCompilerPass ' )
51- ->with ($ this ->isInstanceOf (BuildQueueMetaRegistryPass::class))
52- ;
53- $ container
54- ->expects ($ this ->at (5 ))
55- ->method ('addCompilerPass ' )
56- ->with ($ this ->isInstanceOf (BuildClientExtensionsPass::class))
57- ;
58-
59- $ bundle = new EnqueueBundle ();
60- $ bundle ->build ($ container );
61- }
6223}
0 commit comments