| @@ 606-626 (lines=21) @@ | ||
| 603 | * |
|
| 604 | * @param ContentInfo $contentInfo |
|
| 605 | */ |
|
| 606 | public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo) |
|
| 607 | { |
|
| 608 | $this->assertPropertiesCorrectUnsorted( |
|
| 609 | [ |
|
| 610 | 'id' => 10, |
|
| 611 | 'contentTypeId' => 4, |
|
| 612 | 'name' => 'Anonymous User', |
|
| 613 | 'sectionId' => 2, |
|
| 614 | 'currentVersionNo' => 2, |
|
| 615 | 'published' => true, |
|
| 616 | 'ownerId' => 14, |
|
| 617 | 'modificationDate' => $this->createDateTime(1072180405), |
|
| 618 | 'publishedDate' => $this->createDateTime(1033920665), |
|
| 619 | 'alwaysAvailable' => 1, |
|
| 620 | 'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca', |
|
| 621 | 'mainLanguageCode' => 'eng-US', |
|
| 622 | 'mainLocationId' => 45, |
|
| 623 | ], |
|
| 624 | $contentInfo |
|
| 625 | ); |
|
| 626 | } |
|
| 627 | ||
| 628 | /** |
|
| 629 | * Test for the loadContentInfoByRemoteId() method. |
|
| @@ 5784-5802 (lines=19) @@ | ||
| 5781 | * |
|
| 5782 | * @return array |
|
| 5783 | */ |
|
| 5784 | private function getExpectedMediaContentInfoProperties() |
|
| 5785 | { |
|
| 5786 | return [ |
|
| 5787 | 'id' => 41, |
|
| 5788 | 'contentTypeId' => 1, |
|
| 5789 | 'name' => 'Media', |
|
| 5790 | 'sectionId' => 3, |
|
| 5791 | 'currentVersionNo' => 1, |
|
| 5792 | 'published' => true, |
|
| 5793 | 'ownerId' => 14, |
|
| 5794 | 'modificationDate' => $this->createDateTime(1060695457), |
|
| 5795 | 'publishedDate' => $this->createDateTime(1060695457), |
|
| 5796 | 'alwaysAvailable' => 1, |
|
| 5797 | 'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262', |
|
| 5798 | 'mainLanguageCode' => 'eng-US', |
|
| 5799 | 'mainLocationId' => 43, |
|
| 5800 | 'status' => ContentInfo::STATUS_PUBLISHED, |
|
| 5801 | ]; |
|
| 5802 | } |
|
| 5803 | ||
| 5804 | /** |
|
| 5805 | * @covers \eZ\Publish\API\Repository\ContentService::hideContent |
|