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.
@@ 6170-6188 (lines=19) @@
6167
     *
6168
     * @return array
6169
     */
6170
    private function getExpectedMediaContentInfoProperties()
6171
    {
6172
        return [
6173
            'id' => 41,
6174
            'contentTypeId' => 1,
6175
            'name' => 'Media',
6176
            'sectionId' => 3,
6177
            'currentVersionNo' => 1,
6178
            'published' => true,
6179
            'ownerId' => 14,
6180
            'modificationDate' => $this->createDateTime(1060695457),
6181
            'publishedDate' => $this->createDateTime(1060695457),
6182
            'alwaysAvailable' => 1,
6183
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
6184
            'mainLanguageCode' => 'eng-US',
6185
            'mainLocationId' => 43,
6186
            'status' => ContentInfo::STATUS_PUBLISHED,
6187
        ];
6188
    }
6189
6190
    /**
6191
     * @param \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct[] $locationsToHide