@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * Returns a content mapper mock. |
| 95 | 95 | * |
| 96 | - * @return \eZ\Publish\Core\Persistence\Legacy\Content\Mapper |
|
| 96 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 97 | 97 | */ |
| 98 | 98 | protected function getContentMapperMock() |
| 99 | 99 | { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | /** |
| 150 | 150 | * Returns a content field handler mock. |
| 151 | 151 | * |
| 152 | - * @return \eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler |
|
| 152 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 153 | 153 | */ |
| 154 | 154 | protected function getContentFieldHandlerMock() |
| 155 | 155 | { |
@@ -723,7 +723,7 @@ |
||
| 723 | 723 | * Instantiates a new location create class. |
| 724 | 724 | * |
| 725 | 725 | * @param mixed $parentLocationId the parent under which the new location should be created |
| 726 | - * @param eZ\Publish\API\Repository\Values\ContentType\ContentType|null $contentType |
|
| 726 | + * @param null|ContentType $contentType |
|
| 727 | 727 | * |
| 728 | 728 | * @return \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct |
| 729 | 729 | */ |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | /** |
| 131 | 131 | * Returns a mock for persistence field type. |
| 132 | 132 | * |
| 133 | - * @return \eZ\Publish\SPI\Persistence\FieldType |
|
| 133 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 134 | 134 | */ |
| 135 | 135 | protected function getFieldTypeMock() |
| 136 | 136 | { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | namespace eZ\Publish\API\Repository\Tests; |
| 10 | 10 | |
| 11 | 11 | use eZ\Publish\API\Repository\Exceptions\UnauthorizedException; |
| 12 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
| 13 | 12 | use eZ\Publish\API\Repository\Values\User\Limitation\ObjectStateLimitation; |
| 14 | 13 | use eZ\Publish\Core\Repository\Repository; |
| 15 | 14 | use eZ\Publish\Core\Repository\TrashService; |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | /** |
| 71 | 71 | * Get PDOStatement to fetch metadata about content objects to be indexed. |
| 72 | 72 | * |
| 73 | - * @param array $fields Select fields |
|
| 73 | + * @param string[] $fields Select fields |
|
| 74 | 74 | * @return \PDOStatement |
| 75 | 75 | */ |
| 76 | 76 | protected function getContentDbFieldsStmt(array $fields) |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | use Exception; |
| 12 | 12 | use eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway as LocationGateway; |
| 13 | -use eZ\Publish\SPI\Persistence\Content\Field; |
|
| 14 | 13 | use eZ\Publish\SPI\Persistence\Content\Handler as BaseContentHandler; |
| 15 | 14 | use eZ\Publish\SPI\Persistence\Content\Type\Handler as ContentTypeHandler; |
| 16 | 15 | use eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter; |
@@ -173,6 +173,9 @@ discard block |
||
| 173 | 173 | |
| 174 | 174 | protected $permissionResolverMock; |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @return PermissionResolver |
|
| 178 | + */ |
|
| 176 | 179 | protected function getPermissionResolverMock($methods = []) |
| 177 | 180 | { |
| 178 | 181 | // Tests first calls here with methods set before initiating PermissionCriterionResolver with same instance. |
@@ -189,6 +192,9 @@ discard block |
||
| 189 | 192 | |
| 190 | 193 | protected $permissionCriterionResolverMock; |
| 191 | 194 | |
| 195 | + /** |
|
| 196 | + * @return PermissionCriterionResolver |
|
| 197 | + */ |
|
| 192 | 198 | protected function getPermissionCriterionResolverMock($methods = []) |
| 193 | 199 | { |
| 194 | 200 | // Tests first calls here with methods set before initiating PermissionCriterionResolver with same instance. |
@@ -384,6 +384,9 @@ |
||
| 384 | 384 | |
| 385 | 385 | protected $limitationServiceMock; |
| 386 | 386 | |
| 387 | + /** |
|
| 388 | + * @return integer |
|
| 389 | + */ |
|
| 387 | 390 | protected function getLimitationServiceMock($methods = []) |
| 388 | 391 | { |
| 389 | 392 | // Tests first calls here with methods set before initiating PermissionCriterionResolver with same instance. |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | * Constructor. |
| 20 | 20 | * |
| 21 | 21 | * @param \eZ\Publish\Core\Persistence\TransformationProcessor\PcreCompiler $compiler |
| 22 | - * @param string $installDir Base dir for rule loading |
|
| 23 | 22 | * @param array $ruleFiles |
| 24 | 23 | */ |
| 25 | 24 | public function __construct(PcreCompiler $compiler, array $ruleFiles = []) |