| @@ 574-594 (lines=21) @@ | ||
| 571 | * |
|
| 572 | * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo |
|
| 573 | */ |
|
| 574 | public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo) |
|
| 575 | { |
|
| 576 | $this->assertPropertiesCorrectUnsorted( |
|
| 577 | [ |
|
| 578 | 'id' => 10, |
|
| 579 | 'contentTypeId' => 4, |
|
| 580 | 'name' => 'Anonymous User', |
|
| 581 | 'sectionId' => 2, |
|
| 582 | 'currentVersionNo' => 2, |
|
| 583 | 'published' => true, |
|
| 584 | 'ownerId' => 14, |
|
| 585 | 'modificationDate' => $this->createDateTime(1072180405), |
|
| 586 | 'publishedDate' => $this->createDateTime(1033920665), |
|
| 587 | 'alwaysAvailable' => 1, |
|
| 588 | 'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca', |
|
| 589 | 'mainLanguageCode' => 'eng-US', |
|
| 590 | 'mainLocationId' => 45, |
|
| 591 | ], |
|
| 592 | $contentInfo |
|
| 593 | ); |
|
| 594 | } |
|
| 595 | ||
| 596 | /** |
|
| 597 | * Test for the loadContentInfoByRemoteId() method. |
|
| @@ 6074-6092 (lines=19) @@ | ||
| 6071 | * |
|
| 6072 | * @return array |
|
| 6073 | */ |
|
| 6074 | private function getExpectedMediaContentInfoProperties() |
|
| 6075 | { |
|
| 6076 | return [ |
|
| 6077 | 'id' => 41, |
|
| 6078 | 'contentTypeId' => 1, |
|
| 6079 | 'name' => 'Media', |
|
| 6080 | 'sectionId' => 3, |
|
| 6081 | 'currentVersionNo' => 1, |
|
| 6082 | 'published' => true, |
|
| 6083 | 'ownerId' => 14, |
|
| 6084 | 'modificationDate' => $this->createDateTime(1060695457), |
|
| 6085 | 'publishedDate' => $this->createDateTime(1060695457), |
|
| 6086 | 'alwaysAvailable' => 1, |
|
| 6087 | 'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262', |
|
| 6088 | 'mainLanguageCode' => 'eng-US', |
|
| 6089 | 'mainLocationId' => 43, |
|
| 6090 | 'status' => ContentInfo::STATUS_PUBLISHED, |
|
| 6091 | ]; |
|
| 6092 | } |
|
| 6093 | } |
|
| 6094 | ||