@@ -28,9 +28,16 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | class HandlerLocationSortTest extends AbstractTestCase |
| 30 | 30 | { |
| 31 | + /** |
|
| 32 | + * @param \eZ\Publish\API\Repository\Values\Content\Search\SearchResult $searchResult |
|
| 33 | + */ |
|
| 31 | 34 | protected function getIds($searchResult) |
| 32 | 35 | { |
| 33 | 36 | $ids = array_map( |
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * @param \eZ\Publish\API\Repository\Values\Content\Search\SearchResult $hit |
|
| 40 | + */ |
|
| 34 | 41 | function ($hit) { |
| 35 | 42 | return $hit->valueObject->id; |
| 36 | 43 | }, |
@@ -106,7 +113,7 @@ discard block |
||
| 106 | 113 | /** |
| 107 | 114 | * Returns a location mapper mock. |
| 108 | 115 | * |
| 109 | - * @return \eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper |
|
| 116 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 110 | 117 | */ |
| 111 | 118 | protected function getLocationMapperMock() |
| 112 | 119 | { |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | /** |
| 167 | 167 | * Returns a location mapper mock. |
| 168 | 168 | * |
| 169 | - * @return \eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper |
|
| 169 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 170 | 170 | */ |
| 171 | 171 | protected function getLocationMapperMock() |
| 172 | 172 | { |
@@ -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 | */ |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @param array $languageFilter |
| 26 | 26 | * |
| 27 | - * @return array|null |
|
| 27 | + * @return \eZ\Publish\API\Repository\Values\Content\Query\Criterion |
|
| 28 | 28 | */ |
| 29 | 29 | protected function getFieldFilter(array $languageFilter) |
| 30 | 30 | { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * @param string $fieldDefinitionIdentifier |
| 41 | 41 | * @param string $name |
| 42 | 42 | * |
| 43 | - * @return array |
|
| 43 | + * @return SortClause |
|
| 44 | 44 | */ |
| 45 | 45 | protected function getSortFieldName( |
| 46 | 46 | SortClause $sortClause, |
@@ -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; |
@@ -15,11 +15,10 @@ |
||
| 15 | 15 | use eZ\Publish\Core\Repository\Tests\Service\Mock\Base as BaseServiceMockTest; |
| 16 | 16 | use eZ\Publish\Core\Repository\Helper\DomainMapper; |
| 17 | 17 | use eZ\Publish\Core\Repository\Values\Content\Content; |
| 18 | -use eZ\Publish\SPI\Persistence\Content\ContentInfo; |
|
| 18 | +use eZ\Publish\SPI\Persistence\Content\ContentInfo as SPIContentInfo; |
|
| 19 | 19 | use eZ\Publish\SPI\Persistence\Content\Location; |
| 20 | 20 | use eZ\Publish\API\Repository\Values\Content\Location as APILocation; |
| 21 | 21 | use eZ\Publish\SPI\Persistence\Content\VersionInfo as SPIVersionInfo; |
| 22 | -use eZ\Publish\SPI\Persistence\Content\ContentInfo as SPIContentInfo; |
|
| 23 | 22 | |
| 24 | 23 | /** |
| 25 | 24 | * Mock test case for internal DomainMapper. |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Doctrine\DBAL\Platforms\AbstractPlatform; |
| 15 | 15 | use Doctrine\DBAL\Schema\Schema; |
| 16 | 16 | use eZ\Publish\Core\Base\ServiceContainer; |
| 17 | -use EzSystems\DoctrineSchema\API\Exception\InvalidConfigurationException; |
|
| 18 | 17 | use EzSystems\DoctrineSchema\Importer\SchemaImporter; |
| 19 | 18 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 20 | 19 | use eZ\Publish\API\Repository\Tests\SetupFactory; |