2
2
3
3
namespace Enqueue \Bundle \Tests \Unit ;
4
4
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 ;
10
5
use Enqueue \Bundle \EnqueueBundle ;
11
6
use Enqueue \Test \ClassExtensionTrait ;
12
7
use PHPUnit \Framework \TestCase ;
13
- use Symfony \Component \DependencyInjection \ContainerBuilder ;
14
8
use Symfony \Component \HttpKernel \Bundle \Bundle ;
15
9
16
10
class EnqueueBundleTest extends TestCase
@@ -26,37 +20,4 @@ public function testCouldBeConstructedWithoutAnyArguments()
26
20
{
27
21
new EnqueueBundle ();
28
22
}
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
- }
62
23
}
0 commit comments