@@ -109,7 +109,7 @@ |
||
109 | 109 | /** |
110 | 110 | * Get initial field data for valid object creation. |
111 | 111 | * |
112 | - * @return mixed |
|
112 | + * @return TimeValue |
|
113 | 113 | */ |
114 | 114 | public function getValidCreationFieldData() |
115 | 115 | { |
@@ -268,6 +268,9 @@ discard block |
||
268 | 268 | $this->assertContainsEzRemoteInvalidLinkError($contentRemoteId, $errors); |
269 | 269 | } |
270 | 270 | |
271 | + /** |
|
272 | + * @param integer $locationId |
|
273 | + */ |
|
271 | 274 | private function assertContainsEzLocationInvalidLinkError($locationId, array $errors) |
272 | 275 | { |
273 | 276 | $format = 'Invalid link "ezlocation://%d": target location cannot be found'; |
@@ -275,6 +278,9 @@ discard block |
||
275 | 278 | $this->assertContains(sprintf($format, $locationId), $errors); |
276 | 279 | } |
277 | 280 | |
281 | + /** |
|
282 | + * @param integer $contentId |
|
283 | + */ |
|
278 | 284 | private function assertContainsEzContentInvalidLinkError($contentId, array $errors) |
279 | 285 | { |
280 | 286 | $format = 'Invalid link "ezcontent://%d": target content cannot be found'; |
@@ -282,6 +288,9 @@ discard block |
||
282 | 288 | $this->assertContains(sprintf($format, $contentId), $errors); |
283 | 289 | } |
284 | 290 | |
291 | + /** |
|
292 | + * @param string $contentId |
|
293 | + */ |
|
285 | 294 | private function assertContainsEzRemoteInvalidLinkError($contentId, array $errors) |
286 | 295 | { |
287 | 296 | $format = 'Invalid link "ezremote://%s": target content cannot be found'; |
@@ -303,6 +312,9 @@ discard block |
||
303 | 312 | ->getMock(); |
304 | 313 | } |
305 | 314 | |
315 | + /** |
|
316 | + * @param string $scheme |
|
317 | + */ |
|
306 | 318 | private function createInputDocument($scheme, $id) |
307 | 319 | { |
308 | 320 | $url = $scheme . '://' . $id; |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct; |
15 | 15 | use eZ\Publish\API\Repository\Values\Content\Field; |
16 | 16 | use eZ\Publish\API\Repository\Values\Content\Location; |
17 | -use eZ\Publish\API\Repository\Values\Content\TranslationInfo; |
|
18 | 17 | use eZ\Publish\API\Repository\Values\Content\URLAlias; |
19 | 18 | use eZ\Publish\API\Repository\Values\Content\Relation; |
20 | 19 | use eZ\Publish\API\Repository\Values\Content\VersionInfo; |
@@ -40,7 +40,6 @@ |
||
40 | 40 | use eZ\Publish\SPI\Persistence\Content\Field as SPIField; |
41 | 41 | use eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct as SPIRelationCreateStruct; |
42 | 42 | use Exception; |
43 | -use eZ\Publish\API\Repository\Exceptions\NotImplementedException; |
|
44 | 43 | |
45 | 44 | /** |
46 | 45 | * This class provides service methods for managing content. |
@@ -14,8 +14,6 @@ |
||
14 | 14 | use eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct; |
15 | 15 | use eZ\Publish\API\Repository\Values\Content\ContentMetadataUpdateStruct; |
16 | 16 | use eZ\Publish\API\Repository\Values\Content\LocationCreateStruct; |
17 | -use eZ\Publish\API\Repository\Values\Content\TranslationInfo; |
|
18 | -use eZ\Publish\API\Repository\Values\Content\TranslationValues; |
|
19 | 17 | use eZ\Publish\API\Repository\Values\Content\VersionInfo; |
20 | 18 | use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
21 | 19 | use eZ\Publish\API\Repository\Values\Content\Query; |
@@ -13,8 +13,6 @@ |
||
13 | 13 | use eZ\Publish\API\Repository\Values\Content\LocationCreateStruct; |
14 | 14 | use eZ\Publish\API\Repository\Values\Content\ContentMetadataUpdateStruct; |
15 | 15 | use eZ\Publish\Core\Repository\Values\Content\ContentUpdateStruct; |
16 | -use eZ\Publish\API\Repository\Values\Content\TranslationInfo; |
|
17 | -use eZ\Publish\Core\Repository\Values\Content\TranslationValues; |
|
18 | 16 | use eZ\Publish\Core\Repository\Values\Content\Relation; |
19 | 17 | use eZ\Publish\Core\Repository\Values\ContentType\ContentType; |
20 | 18 | use eZ\Publish\Core\SignalSlot\Signal\ContentService\DeleteTranslationSignal; |