Code Duplication    Length = 19-21 lines in 2 locations

eZ/Publish/API/Repository/Tests/ContentServiceTest.php 2 locations

@@ 641-661 (lines=21) @@
638
     *
639
     * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
640
     */
641
    public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo)
642
    {
643
        $this->assertPropertiesCorrectUnsorted(
644
            [
645
                'id' => 10,
646
                'contentTypeId' => 4,
647
                'name' => 'Anonymous User',
648
                'sectionId' => 2,
649
                'currentVersionNo' => 2,
650
                'published' => true,
651
                'ownerId' => 14,
652
                'modificationDate' => $this->createDateTime(1072180405),
653
                'publishedDate' => $this->createDateTime(1033920665),
654
                'alwaysAvailable' => 1,
655
                'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca',
656
                'mainLanguageCode' => 'eng-US',
657
                'mainLocationId' => 45,
658
            ],
659
            $contentInfo
660
        );
661
    }
662
663
    /**
664
     * Test for the loadContentInfoByRemoteId() method.
@@ 6208-6226 (lines=19) @@
6205
     *
6206
     * @return array
6207
     */
6208
    private function getExpectedMediaContentInfoProperties()
6209
    {
6210
        return [
6211
            'id' => 41,
6212
            'contentTypeId' => 1,
6213
            'name' => 'Media',
6214
            'sectionId' => 3,
6215
            'currentVersionNo' => 1,
6216
            'published' => true,
6217
            'ownerId' => 14,
6218
            'modificationDate' => $this->createDateTime(1060695457),
6219
            'publishedDate' => $this->createDateTime(1060695457),
6220
            'alwaysAvailable' => 1,
6221
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
6222
            'mainLanguageCode' => 'eng-US',
6223
            'mainLocationId' => 43,
6224
            'status' => ContentInfo::STATUS_PUBLISHED,
6225
        ];
6226
    }
6227
6228
    /**
6229
     * @param \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct[] $locationsToHide