@@ -104,6 +104,9 @@ discard block |
||
| 104 | 104 | ); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $name |
|
| 109 | + */ |
|
| 107 | 110 | private function getMockContainer($mockOrganization = null, $mockedOrganizationInFactory = null, $name = OrganizationInterface::DEFAULT_NAME) |
| 108 | 111 | { |
| 109 | 112 | $mockRepo = $this->getMockBuilder(OrganizationRepositoryInterface::class) |
@@ -148,7 +151,7 @@ discard block |
||
| 148 | 151 | } |
| 149 | 152 | |
| 150 | 153 | /** |
| 151 | - * @param $input |
|
| 154 | + * @param string $input |
|
| 152 | 155 | * |
| 153 | 156 | * @return resource |
| 154 | 157 | */ |
@@ -129,6 +129,10 @@ discard block |
||
| 129 | 129 | ); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | + /** |
|
| 133 | + * @param Tenant $mockTenant |
|
| 134 | + * @param Tenant $mockedTenantInFactory |
|
| 135 | + */ |
|
| 132 | 136 | private function getMockContainer($mockTenant = null, $mockOrganization = null, $mockedTenantInFactory = null, $subdomain = 'default') |
| 133 | 137 | { |
| 134 | 138 | $mockRepoOrganization = $this->getMockBuilder(OrganizationRepositoryInterface::class) |
@@ -187,7 +191,7 @@ discard block |
||
| 187 | 191 | } |
| 188 | 192 | |
| 189 | 193 | /** |
| 190 | - * @param $input |
|
| 194 | + * @param string $input |
|
| 191 | 195 | * |
| 192 | 196 | * @return resource |
| 193 | 197 | */ |
@@ -46,8 +46,8 @@ |
||
| 46 | 46 | ->end() |
| 47 | 47 | ->arrayNode('persistence') |
| 48 | 48 | ->validate() |
| 49 | - ->ifTrue(function ($v) { |
|
| 50 | - return count(array_filter($v, function ($persistence) { |
|
| 49 | + ->ifTrue(function($v) { |
|
| 50 | + return count(array_filter($v, function($persistence) { |
|
| 51 | 51 | return $persistence['enabled']; |
| 52 | 52 | })) > 1; |
| 53 | 53 | }) |