|
@@ 126-138 (lines=13) @@
|
| 123 |
|
$this->build('/routes')->shouldReturn('/swp/default'); |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
public function it_should_throw_an_exception_when_no_tenant_and_empty_path($tenantContext) |
| 127 |
|
{ |
| 128 |
|
$tenantContext->getTenant()->willReturn(new Tenant()); |
| 129 |
|
|
| 130 |
|
$this->shouldThrow('PHPCR\RepositoryException') |
| 131 |
|
->duringBuild('', 'test'); |
| 132 |
|
|
| 133 |
|
$this->shouldThrow('PHPCR\RepositoryException') |
| 134 |
|
->duringBuild(''); |
| 135 |
|
|
| 136 |
|
$this->shouldThrow('PHPCR\RepositoryException') |
| 137 |
|
->duringBuild(null); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
public function it_should_throw_exception_when_tenant_present_and_empty_path($tenantContext) |
| 141 |
|
{ |
|
@@ 140-152 (lines=13) @@
|
| 137 |
|
->duringBuild(null); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
public function it_should_throw_exception_when_tenant_present_and_empty_path($tenantContext) |
| 141 |
|
{ |
| 142 |
|
$tenantContext->getTenant()->willReturn(new Tenant()); |
| 143 |
|
|
| 144 |
|
$this->shouldThrow('PHPCR\RepositoryException') |
| 145 |
|
->duringBuild('', 'test'); |
| 146 |
|
|
| 147 |
|
$this->shouldThrow('PHPCR\RepositoryException') |
| 148 |
|
->duringBuild(''); |
| 149 |
|
|
| 150 |
|
$this->shouldThrow('PHPCR\RepositoryException') |
| 151 |
|
->duringBuild(null); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
public function it_should_not_throw_an_exception_when_tenant_present() |
| 155 |
|
{ |