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