@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * |
142 | 142 | * @param $groupPath |
143 | 143 | * |
144 | - * @return \eZ\Publish\Core\REST\Server\Values\RestUserGroup |
|
144 | + * @return Values\CachedValue |
|
145 | 145 | */ |
146 | 146 | public function loadUserGroup($groupPath) |
147 | 147 | { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * |
179 | 179 | * @param $userId |
180 | 180 | * |
181 | - * @return \eZ\Publish\Core\REST\Server\Values\RestUser |
|
181 | + * @return Values\CachedValue |
|
182 | 182 | */ |
183 | 183 | public function loadUser($userId) |
184 | 184 | { |
@@ -711,7 +711,7 @@ discard block |
||
711 | 711 | * |
712 | 712 | * @param $groupPath |
713 | 713 | * |
714 | - * @return \eZ\Publish\Core\REST\Server\Values\UserGroupList|\eZ\Publish\Core\REST\Server\Values\UserGroupRefList |
|
714 | + * @return Values\CachedValue |
|
715 | 715 | */ |
716 | 716 | public function loadSubUserGroups($groupPath, Request $request) |
717 | 717 | { |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | * |
768 | 768 | * @param $userId |
769 | 769 | * |
770 | - * @return \eZ\Publish\Core\REST\Server\Values\UserGroupRefList |
|
770 | + * @return Values\CachedValue |
|
771 | 771 | */ |
772 | 772 | public function loadUserGroupsOfUser($userId, Request $request) |
773 | 773 | { |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | * |
808 | 808 | * @param $groupPath |
809 | 809 | * |
810 | - * @return \eZ\Publish\Core\REST\Server\Values\UserList|\eZ\Publish\Core\REST\Server\Values\UserRefList |
|
810 | + * @return Values\CachedValue |
|
811 | 811 | */ |
812 | 812 | public function loadUsersFromGroup($groupPath, Request $request) |
813 | 813 | { |
@@ -70,7 +70,7 @@ discard block |
||
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) |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * Log warning while progress bar is shown. |
109 | 109 | * |
110 | 110 | * @param \Symfony\Component\Console\Helper\ProgressBar $progress |
111 | - * @param $message |
|
111 | + * @param string $message |
|
112 | 112 | */ |
113 | 113 | protected function logWarning(ProgressBar $progress, $message) |
114 | 114 | { |
@@ -8,11 +8,10 @@ |
||
8 | 8 | */ |
9 | 9 | namespace eZ\Publish\API\Repository\Tests; |
10 | 10 | |
11 | -use eZ\Publish\API\Repository\Tests\SetupFactory\LegacyElasticsearch as LegacyElasticsearchSetupFactory; |
|
11 | +use eZ\Publish\API\Repository\Tests\SetupFactory\LegacyElasticsearch; |
|
12 | 12 | use eZ\Publish\API\Repository\Values\Content\ContentInfo; |
13 | 13 | use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
14 | 14 | use eZ\Publish\API\Repository\SearchService; |
15 | -use eZ\Publish\API\Repository\Tests\SetupFactory\LegacyElasticsearch; |
|
16 | 15 | use eZ\Publish\API\Repository\Values\Content\LocationQuery; |
17 | 16 | use eZ\Publish\API\Repository\Values\Content\Query; |
18 | 17 | use eZ\Publish\API\Repository\Values\Content\Query\Criterion; |
@@ -5003,7 +5003,7 @@ |
||
5003 | 5003 | protected $languageMaskGenerator; |
5004 | 5004 | |
5005 | 5005 | /** |
5006 | - * @param array $methods |
|
5006 | + * @param string[] $methods |
|
5007 | 5007 | * |
5008 | 5008 | * @return \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler|\PHPUnit_Framework_MockObject_MockObject |
5009 | 5009 | */ |
@@ -1052,7 +1052,7 @@ discard block |
||
1052 | 1052 | * @param string $mainLanguageCode |
1053 | 1053 | * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields |
1054 | 1054 | * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions |
1055 | - * @param array $languageCodes |
|
1055 | + * @param string[] $languageCodes |
|
1056 | 1056 | * |
1057 | 1057 | * @return array |
1058 | 1058 | */ |
@@ -1126,10 +1126,9 @@ discard block |
||
1126 | 1126 | * @param \eZ\Publish\SPI\Persistence\Content\Field[] $spiFields |
1127 | 1127 | * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions |
1128 | 1128 | * @param \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct[] $locationCreateStructs |
1129 | - * @param \eZ\Publish\SPI\Persistence\Content\ObjectState\Group[] $objectStateGroups |
|
1130 | 1129 | * @param bool $execute |
1131 | 1130 | * |
1132 | - * @return mixed |
|
1131 | + * @return ContentCreateStruct |
|
1133 | 1132 | */ |
1134 | 1133 | protected function assertForTestCreateContentNonRedundantFieldSet( |
1135 | 1134 | $mainLanguageCode, |
@@ -2006,7 +2005,7 @@ discard block |
||
2006 | 2005 | * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields |
2007 | 2006 | * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions |
2008 | 2007 | * |
2009 | - * @return mixed |
|
2008 | + * @return ContentCreateStruct |
|
2010 | 2009 | */ |
2011 | 2010 | protected function assertForTestCreateContentRequiredField( |
2012 | 2011 | $mainLanguageCode, |
@@ -4793,6 +4792,10 @@ discard block |
||
4793 | 4792 | ); |
4794 | 4793 | } |
4795 | 4794 | |
4795 | + /** |
|
4796 | + * @param Field[] $existingFields |
|
4797 | + * @param FieldDefinition[] $fieldDefinitions |
|
4798 | + */ |
|
4796 | 4799 | public function assertForTestUpdateContentRequiredField( |
4797 | 4800 | $initialLanguageCode, |
4798 | 4801 | $structFields, |
@@ -4991,6 +4994,10 @@ discard block |
||
4991 | 4994 | } |
4992 | 4995 | } |
4993 | 4996 | |
4997 | + /** |
|
4998 | + * @param Field[] $existingFields |
|
4999 | + * @param FieldDefinition[] $fieldDefinitions |
|
5000 | + */ |
|
4994 | 5001 | public function assertForTestUpdateContentThrowsContentFieldValidationException( |
4995 | 5002 | $initialLanguageCode, |
4996 | 5003 | $structFields, |
@@ -517,7 +517,7 @@ |
||
517 | 517 | /** |
518 | 518 | * Get the field type parser mock object. |
519 | 519 | * |
520 | - * @return \eZ\Publish\Core\REST\Common\Input\FieldTypeParser; |
|
520 | + * @return \eZ\Publish\Core\REST\Common\Input\FieldTypeParser |
|
521 | 521 | */ |
522 | 522 | private function getFieldTypeParserMock() |
523 | 523 | { |
@@ -517,7 +517,7 @@ |
||
517 | 517 | /** |
518 | 518 | * Get the field type parser mock object. |
519 | 519 | * |
520 | - * @return \eZ\Publish\Core\REST\Common\Input\FieldTypeParser; |
|
520 | + * @return \eZ\Publish\Core\REST\Common\Input\FieldTypeParser |
|
521 | 521 | */ |
522 | 522 | private function getFieldTypeParserMock() |
523 | 523 | { |
@@ -517,7 +517,7 @@ |
||
517 | 517 | /** |
518 | 518 | * Get the field type parser mock object. |
519 | 519 | * |
520 | - * @return \eZ\Publish\Core\REST\Common\Input\FieldTypeParser; |
|
520 | + * @return \eZ\Publish\Core\REST\Common\Input\FieldTypeParser |
|
521 | 521 | */ |
522 | 522 | private function getFieldTypeParserMock() |
523 | 523 | { |
@@ -517,7 +517,7 @@ |
||
517 | 517 | /** |
518 | 518 | * Get the field type parser mock object. |
519 | 519 | * |
520 | - * @return \eZ\Publish\Core\REST\Common\Input\FieldTypeParser; |
|
520 | + * @return \eZ\Publish\Core\REST\Common\Input\FieldTypeParser |
|
521 | 521 | */ |
522 | 522 | private function getFieldTypeParserMock() |
523 | 523 | { |