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