| @@ 575-595 (lines=21) @@ | ||
| 572 | * |
|
| 573 | * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo |
|
| 574 | */ |
|
| 575 | public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo) |
|
| 576 | { |
|
| 577 | $this->assertPropertiesCorrectUnsorted( |
|
| 578 | [ |
|
| 579 | 'id' => 10, |
|
| 580 | 'contentTypeId' => 4, |
|
| 581 | 'name' => 'Anonymous User', |
|
| 582 | 'sectionId' => 2, |
|
| 583 | 'currentVersionNo' => 2, |
|
| 584 | 'published' => true, |
|
| 585 | 'ownerId' => 14, |
|
| 586 | 'modificationDate' => $this->createDateTime(1072180405), |
|
| 587 | 'publishedDate' => $this->createDateTime(1033920665), |
|
| 588 | 'alwaysAvailable' => 1, |
|
| 589 | 'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca', |
|
| 590 | 'mainLanguageCode' => 'eng-US', |
|
| 591 | 'mainLocationId' => 45, |
|
| 592 | ], |
|
| 593 | $contentInfo |
|
| 594 | ); |
|
| 595 | } |
|
| 596 | ||
| 597 | /** |
|
| 598 | * Test for the loadContentInfoByRemoteId() method. |
|
| @@ 6092-6110 (lines=19) @@ | ||
| 6089 | * |
|
| 6090 | * @return array |
|
| 6091 | */ |
|
| 6092 | private function getExpectedMediaContentInfoProperties() |
|
| 6093 | { |
|
| 6094 | return [ |
|
| 6095 | 'id' => 41, |
|
| 6096 | 'contentTypeId' => 1, |
|
| 6097 | 'name' => 'Media', |
|
| 6098 | 'sectionId' => 3, |
|
| 6099 | 'currentVersionNo' => 1, |
|
| 6100 | 'published' => true, |
|
| 6101 | 'ownerId' => 14, |
|
| 6102 | 'modificationDate' => $this->createDateTime(1060695457), |
|
| 6103 | 'publishedDate' => $this->createDateTime(1060695457), |
|
| 6104 | 'alwaysAvailable' => 1, |
|
| 6105 | 'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262', |
|
| 6106 | 'mainLanguageCode' => 'eng-US', |
|
| 6107 | 'mainLocationId' => 43, |
|
| 6108 | 'status' => ContentInfo::STATUS_PUBLISHED, |
|
| 6109 | ]; |
|
| 6110 | } |
|
| 6111 | } |
|
| 6112 | ||