| @@ 607-627 (lines=21) @@ | ||
| 604 | * |
|
| 605 | * @param ContentInfo $contentInfo |
|
| 606 | */ |
|
| 607 | public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo) |
|
| 608 | { |
|
| 609 | $this->assertPropertiesCorrectUnsorted( |
|
| 610 | [ |
|
| 611 | 'id' => 10, |
|
| 612 | 'contentTypeId' => 4, |
|
| 613 | 'name' => 'Anonymous User', |
|
| 614 | 'sectionId' => 2, |
|
| 615 | 'currentVersionNo' => 2, |
|
| 616 | 'published' => true, |
|
| 617 | 'ownerId' => 14, |
|
| 618 | 'modificationDate' => $this->createDateTime(1072180405), |
|
| 619 | 'publishedDate' => $this->createDateTime(1033920665), |
|
| 620 | 'alwaysAvailable' => 1, |
|
| 621 | 'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca', |
|
| 622 | 'mainLanguageCode' => 'eng-US', |
|
| 623 | 'mainLocationId' => 45, |
|
| 624 | ], |
|
| 625 | $contentInfo |
|
| 626 | ); |
|
| 627 | } |
|
| 628 | ||
| 629 | /** |
|
| 630 | * Test for the loadContentInfoByRemoteId() method. |
|
| @@ 5884-5902 (lines=19) @@ | ||
| 5881 | * |
|
| 5882 | * @return array |
|
| 5883 | */ |
|
| 5884 | private function getExpectedMediaContentInfoProperties() |
|
| 5885 | { |
|
| 5886 | return [ |
|
| 5887 | 'id' => 41, |
|
| 5888 | 'contentTypeId' => 1, |
|
| 5889 | 'name' => 'Media', |
|
| 5890 | 'sectionId' => 3, |
|
| 5891 | 'currentVersionNo' => 1, |
|
| 5892 | 'published' => true, |
|
| 5893 | 'ownerId' => 14, |
|
| 5894 | 'modificationDate' => $this->createDateTime(1060695457), |
|
| 5895 | 'publishedDate' => $this->createDateTime(1060695457), |
|
| 5896 | 'alwaysAvailable' => 1, |
|
| 5897 | 'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262', |
|
| 5898 | 'mainLanguageCode' => 'eng-US', |
|
| 5899 | 'mainLocationId' => 43, |
|
| 5900 | 'status' => ContentInfo::STATUS_PUBLISHED, |
|
| 5901 | ]; |
|
| 5902 | } |
|
| 5903 | ||
| 5904 | /** |
|
| 5905 | * @covers \eZ\Publish\API\Repository\ContentService::hideContent |
|