| @@ 642-662 (lines=21) @@ | ||
| 639 | * |
|
| 640 | * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo |
|
| 641 | */ |
|
| 642 | public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo) |
|
| 643 | { |
|
| 644 | $this->assertPropertiesCorrectUnsorted( |
|
| 645 | [ |
|
| 646 | 'id' => 10, |
|
| 647 | 'contentTypeId' => 4, |
|
| 648 | 'name' => 'Anonymous User', |
|
| 649 | 'sectionId' => 2, |
|
| 650 | 'currentVersionNo' => 2, |
|
| 651 | 'published' => true, |
|
| 652 | 'ownerId' => 14, |
|
| 653 | 'modificationDate' => $this->createDateTime(1072180405), |
|
| 654 | 'publishedDate' => $this->createDateTime(1033920665), |
|
| 655 | 'alwaysAvailable' => 1, |
|
| 656 | 'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca', |
|
| 657 | 'mainLanguageCode' => 'eng-US', |
|
| 658 | 'mainLocationId' => 45, |
|
| 659 | ], |
|
| 660 | $contentInfo |
|
| 661 | ); |
|
| 662 | } |
|
| 663 | ||
| 664 | /** |
|
| 665 | * Test for the loadContentInfoByRemoteId() method. |
|
| @@ 6297-6315 (lines=19) @@ | ||
| 6294 | * |
|
| 6295 | * @return array |
|
| 6296 | */ |
|
| 6297 | private function getExpectedMediaContentInfoProperties() |
|
| 6298 | { |
|
| 6299 | return [ |
|
| 6300 | 'id' => 41, |
|
| 6301 | 'contentTypeId' => 1, |
|
| 6302 | 'name' => 'Media', |
|
| 6303 | 'sectionId' => 3, |
|
| 6304 | 'currentVersionNo' => 1, |
|
| 6305 | 'published' => true, |
|
| 6306 | 'ownerId' => 14, |
|
| 6307 | 'modificationDate' => $this->createDateTime(1060695457), |
|
| 6308 | 'publishedDate' => $this->createDateTime(1060695457), |
|
| 6309 | 'alwaysAvailable' => 1, |
|
| 6310 | 'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262', |
|
| 6311 | 'mainLanguageCode' => 'eng-US', |
|
| 6312 | 'mainLocationId' => 43, |
|
| 6313 | 'status' => ContentInfo::STATUS_PUBLISHED, |
|
| 6314 | ]; |
|
| 6315 | } |
|
| 6316 | ||
| 6317 | /** |
|
| 6318 | * @covers \eZ\Publish\API\Repository\ContentService::hideContent |
|