@@ -270,9 +270,9 @@ |
||
270 | 270 | * Return relevant content and location tags so cache can be purged reliably. |
271 | 271 | * |
272 | 272 | * @param Location $location |
273 | - * @param array $tags Optional, can be used to specify additional tags. |
|
273 | + * @param string[] $tags Optional, can be used to specify additional tags. |
|
274 | 274 | * |
275 | - * @return array |
|
275 | + * @return string[] |
|
276 | 276 | */ |
277 | 277 | private function getCacheTags(Location $location, $tags = []) |
278 | 278 | { |
@@ -369,7 +369,7 @@ |
||
369 | 369 | * @param bool $withFields Set to true if item contains fields which should be expired on relation or type updates. |
370 | 370 | * @param array $tags Optional, can be used to specify other tags. |
371 | 371 | * |
372 | - * @return array |
|
372 | + * @return string[] |
|
373 | 373 | */ |
374 | 374 | private function getCacheTags(ContentInfo $contentInfo, $withFields = false, array $tags = []) |
375 | 375 | { |
@@ -109,7 +109,7 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
112 | - * @param $key |
|
112 | + * @param string $key |
|
113 | 113 | * @param null $value If null the cache item will be assumed to be a cache miss here. |
114 | 114 | * @param int $defaultLifetime |
115 | 115 | * |
@@ -447,9 +447,9 @@ |
||
447 | 447 | * Reusable function to return relevant role assignment tags so cache can be purged reliably. |
448 | 448 | * |
449 | 449 | * @param \eZ\Publish\SPI\Persistence\User\RoleAssignment $roleAssignment |
450 | - * @param array $tags Optional, can be used to specify other tags. |
|
450 | + * @param string[] $tags Optional, can be used to specify other tags. |
|
451 | 451 | * |
452 | - * @return array |
|
452 | + * @return string[] |
|
453 | 453 | */ |
454 | 454 | private function getCacheTagsForRoleAssignment(RoleAssignment $roleAssignment, array $tags = []) |
455 | 455 | { |
@@ -368,9 +368,9 @@ |
||
368 | 368 | * For use when generating cache, not on invalidation. |
369 | 369 | * |
370 | 370 | * @param \eZ\Publish\SPI\Persistence\Content\UrlAlias $urlAlias |
371 | - * @param array $tags Optional, can be used to specify other tags. |
|
371 | + * @param string[] $tags Optional, can be used to specify other tags. |
|
372 | 372 | * |
373 | - * @return array |
|
373 | + * @return string[] |
|
374 | 374 | */ |
375 | 375 | private function getCacheTags(UrlAlias $urlAlias, array $tags = []) |
376 | 376 | { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | } |
178 | 178 | |
179 | 179 | /** |
180 | - * @return \eZ\Publish\SPI\Persistence\Content\Handler|\PHPUnit_Framework_MockObject_MockObject |
|
180 | + * @return \eZ\Publish\SPI\Persistence\Content\Handler |
|
181 | 181 | */ |
182 | 182 | protected function getContentHandlerMock() |
183 | 183 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | - * @return \eZ\Publish\SPI\Persistence\Content\Language\Handler|\PHPUnit_Framework_MockObject_MockObject |
|
188 | + * @return \eZ\Publish\SPI\Persistence\Content\Language\Handler |
|
189 | 189 | */ |
190 | 190 | protected function getLanguageHandlerMock() |
191 | 191 | { |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | } |
194 | 194 | |
195 | 195 | /** |
196 | - * @return \eZ\Publish\SPI\Persistence\Content\Type\Handler|\PHPUnit_Framework_MockObject_MockObject |
|
196 | + * @return \eZ\Publish\SPI\Persistence\Content\Type\Handler |
|
197 | 197 | */ |
198 | 198 | protected function getTypeHandlerMock() |
199 | 199 | { |
@@ -13,10 +13,9 @@ |
||
13 | 13 | use eZ\Publish\API\Repository\Values\Content\VersionInfo as APIVersionInfo; |
14 | 14 | use eZ\Publish\Core\Repository\Tests\Service\Mock\Base as BaseServiceMockTest; |
15 | 15 | use eZ\Publish\Core\Repository\Helper\DomainMapper; |
16 | -use eZ\Publish\SPI\Persistence\Content\ContentInfo; |
|
16 | +use eZ\Publish\SPI\Persistence\Content\ContentInfo as SPIContentInfo; |
|
17 | 17 | use eZ\Publish\SPI\Persistence\Content\Location; |
18 | 18 | use eZ\Publish\SPI\Persistence\Content\VersionInfo as SPIVersionInfo; |
19 | -use eZ\Publish\SPI\Persistence\Content\ContentInfo as SPIContentInfo; |
|
20 | 19 | |
21 | 20 | /** |
22 | 21 | * Mock test case for internal DomainMapper. |