| @@ 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. |
|
| @@ 6003-6020 (lines=18) @@ | ||
| 6000 | * |
|
| 6001 | * @return array |
|
| 6002 | */ |
|
| 6003 | private function getExpectedMediaContentInfoProperties() |
|
| 6004 | { |
|
| 6005 | return [ |
|
| 6006 | 'id' => 41, |
|
| 6007 | 'contentTypeId' => 1, |
|
| 6008 | 'name' => 'Media', |
|
| 6009 | 'sectionId' => 3, |
|
| 6010 | 'currentVersionNo' => 1, |
|
| 6011 | 'published' => true, |
|
| 6012 | 'ownerId' => 14, |
|
| 6013 | 'modificationDate' => $this->createDateTime(1060695457), |
|
| 6014 | 'publishedDate' => $this->createDateTime(1060695457), |
|
| 6015 | 'alwaysAvailable' => 1, |
|
| 6016 | 'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262', |
|
| 6017 | 'mainLanguageCode' => 'eng-US', |
|
| 6018 | 'mainLocationId' => 43, |
|
| 6019 | ]; |
|
| 6020 | } |
|
| 6021 | } |
|
| 6022 | ||