| @@ 571-591 (lines=21) @@ | ||
| 568 | * |
|
| 569 | * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo |
|
| 570 | */ |
|
| 571 | public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo) |
|
| 572 | { |
|
| 573 | $this->assertPropertiesCorrectUnsorted( |
|
| 574 | [ |
|
| 575 | 'id' => 10, |
|
| 576 | 'contentTypeId' => 4, |
|
| 577 | 'name' => 'Anonymous User', |
|
| 578 | 'sectionId' => 2, |
|
| 579 | 'currentVersionNo' => 2, |
|
| 580 | 'published' => true, |
|
| 581 | 'ownerId' => 14, |
|
| 582 | 'modificationDate' => $this->createDateTime(1072180405), |
|
| 583 | 'publishedDate' => $this->createDateTime(1033920665), |
|
| 584 | 'alwaysAvailable' => 1, |
|
| 585 | 'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca', |
|
| 586 | 'mainLanguageCode' => 'eng-US', |
|
| 587 | 'mainLocationId' => 45, |
|
| 588 | ], |
|
| 589 | $contentInfo |
|
| 590 | ); |
|
| 591 | } |
|
| 592 | ||
| 593 | /** |
|
| 594 | * Test for the loadContentInfoByRemoteId() method. |
|
| @@ 5384-5401 (lines=18) @@ | ||
| 5381 | * |
|
| 5382 | * @return array |
|
| 5383 | */ |
|
| 5384 | private function getExpectedMediaContentInfoProperties() |
|
| 5385 | { |
|
| 5386 | return [ |
|
| 5387 | 'id' => 41, |
|
| 5388 | 'contentTypeId' => 1, |
|
| 5389 | 'name' => 'Media', |
|
| 5390 | 'sectionId' => 3, |
|
| 5391 | 'currentVersionNo' => 1, |
|
| 5392 | 'published' => true, |
|
| 5393 | 'ownerId' => 14, |
|
| 5394 | 'modificationDate' => $this->createDateTime(1060695457), |
|
| 5395 | 'publishedDate' => $this->createDateTime(1060695457), |
|
| 5396 | 'alwaysAvailable' => 1, |
|
| 5397 | 'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262', |
|
| 5398 | 'mainLanguageCode' => 'eng-US', |
|
| 5399 | 'mainLocationId' => 43, |
|
| 5400 | ]; |
|
| 5401 | } |
|
| 5402 | } |
|
| 5403 | ||