Code Duplication    Length = 19-21 lines in 2 locations

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

@@ 661-681 (lines=21) @@
658
     *
659
     * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
660
     */
661
    public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo)
662
    {
663
        $this->assertPropertiesCorrectUnsorted(
664
            [
665
                'id' => 10,
666
                'contentTypeId' => 4,
667
                'name' => 'Anonymous User',
668
                'sectionId' => 2,
669
                'currentVersionNo' => 2,
670
                'published' => true,
671
                'ownerId' => 14,
672
                'modificationDate' => $this->createDateTime(1072180405),
673
                'publishedDate' => $this->createDateTime(1033920665),
674
                'alwaysAvailable' => 1,
675
                'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca',
676
                'mainLanguageCode' => 'eng-US',
677
                'mainLocationId' => 45,
678
            ],
679
            $contentInfo
680
        );
681
    }
682
683
    /**
684
     * Test for the loadContentInfoByRemoteId() method.
@@ 6256-6274 (lines=19) @@
6253
     *
6254
     * @return array
6255
     */
6256
    private function getExpectedMediaContentInfoProperties()
6257
    {
6258
        return [
6259
            'id' => 41,
6260
            'contentTypeId' => 1,
6261
            'name' => 'Media',
6262
            'sectionId' => 3,
6263
            'currentVersionNo' => 1,
6264
            'published' => true,
6265
            'ownerId' => 14,
6266
            'modificationDate' => $this->createDateTime(1060695457),
6267
            'publishedDate' => $this->createDateTime(1060695457),
6268
            'alwaysAvailable' => 1,
6269
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
6270
            'mainLanguageCode' => 'eng-US',
6271
            'mainLocationId' => 43,
6272
            'status' => ContentInfo::STATUS_PUBLISHED,
6273
        ];
6274
    }
6275
6276
    /**
6277
     * @covers \eZ\Publish\API\Repository\ContentService::hideContent