@@ 88-98 (lines=11) @@ | ||
85 | /** |
|
86 | * @covers \SWP\Bundle\MultiTenancyBundle\DependencyInjection\Compiler\TenantAwareRouterCompilerPass::process |
|
87 | */ |
|
88 | public function testProcessCMFBackendDisabled() |
|
89 | { |
|
90 | $this->container->expects($this->any()) |
|
91 | ->method('hasParameter') |
|
92 | ->will($this->returnValueMap([ |
|
93 | ['swp_multi_tenancy.backend_type_phpcr', true], |
|
94 | ['cmf_routing.backend_type_phpcr', false], |
|
95 | ])); |
|
96 | ||
97 | $this->assertNull($this->pass->process($this->container)); |
|
98 | } |
|
99 | ||
100 | /** |
|
101 | * @covers \SWP\Bundle\MultiTenancyBundle\DependencyInjection\Compiler\TenantAwareRouterCompilerPass::process |
|
@@ 103-113 (lines=11) @@ | ||
100 | /** |
|
101 | * @covers \SWP\Bundle\MultiTenancyBundle\DependencyInjection\Compiler\TenantAwareRouterCompilerPass::process |
|
102 | */ |
|
103 | public function testProcessWithoutConfig() |
|
104 | { |
|
105 | $this->container->expects($this->any()) |
|
106 | ->method('hasParameter') |
|
107 | ->will($this->returnValueMap([ |
|
108 | ['swp_multi_tenancy.backend_type_phpcr', false], |
|
109 | ['cmf_routing.backend_type_phpcr', false], |
|
110 | ])); |
|
111 | ||
112 | $this->assertNull($this->pass->process($this->container)); |
|
113 | } |
|
114 | ||
115 | /** |
|
116 | * @expectedException \Symfony\Component\DependencyInjection\Exception\RuntimeException |