| @@ 573-593 (lines=21) @@ | ||
| 570 | * |
|
| 571 | * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo |
|
| 572 | */ |
|
| 573 | public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo) |
|
| 574 | { |
|
| 575 | $this->assertPropertiesCorrectUnsorted( |
|
| 576 | [ |
|
| 577 | 'id' => 10, |
|
| 578 | 'contentTypeId' => 4, |
|
| 579 | 'name' => 'Anonymous User', |
|
| 580 | 'sectionId' => 2, |
|
| 581 | 'currentVersionNo' => 2, |
|
| 582 | 'published' => true, |
|
| 583 | 'ownerId' => 14, |
|
| 584 | 'modificationDate' => $this->createDateTime(1072180405), |
|
| 585 | 'publishedDate' => $this->createDateTime(1033920665), |
|
| 586 | 'alwaysAvailable' => 1, |
|
| 587 | 'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca', |
|
| 588 | 'mainLanguageCode' => 'eng-US', |
|
| 589 | 'mainLocationId' => 45, |
|
| 590 | ], |
|
| 591 | $contentInfo |
|
| 592 | ); |
|
| 593 | } |
|
| 594 | ||
| 595 | /** |
|
| 596 | * Test for the loadContentInfoByRemoteId() method. |
|
| @@ 5673-5690 (lines=18) @@ | ||
| 5670 | * |
|
| 5671 | * @return array |
|
| 5672 | */ |
|
| 5673 | private function getExpectedMediaContentInfoProperties() |
|
| 5674 | { |
|
| 5675 | return [ |
|
| 5676 | 'id' => 41, |
|
| 5677 | 'contentTypeId' => 1, |
|
| 5678 | 'name' => 'Media', |
|
| 5679 | 'sectionId' => 3, |
|
| 5680 | 'currentVersionNo' => 1, |
|
| 5681 | 'published' => true, |
|
| 5682 | 'ownerId' => 14, |
|
| 5683 | 'modificationDate' => $this->createDateTime(1060695457), |
|
| 5684 | 'publishedDate' => $this->createDateTime(1060695457), |
|
| 5685 | 'alwaysAvailable' => 1, |
|
| 5686 | 'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262', |
|
| 5687 | 'mainLanguageCode' => 'eng-US', |
|
| 5688 | 'mainLocationId' => 43, |
|
| 5689 | ]; |
|
| 5690 | } |
|
| 5691 | } |
|
| 5692 | ||