Code Duplication    Length = 19-21 lines in 2 locations

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

@@ 649-669 (lines=21) @@
646
     *
647
     * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
648
     */
649
    public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo)
650
    {
651
        $this->assertPropertiesCorrectUnsorted(
652
            [
653
                'id' => 10,
654
                'contentTypeId' => 4,
655
                'name' => 'Anonymous User',
656
                'sectionId' => 2,
657
                'currentVersionNo' => 2,
658
                'published' => true,
659
                'ownerId' => 14,
660
                'modificationDate' => $this->createDateTime(1072180405),
661
                'publishedDate' => $this->createDateTime(1033920665),
662
                'alwaysAvailable' => 1,
663
                'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca',
664
                'mainLanguageCode' => 'eng-US',
665
                'mainLocationId' => 45,
666
            ],
667
            $contentInfo
668
        );
669
    }
670
671
    /**
672
     * Test for the loadContentInfoByRemoteId() method.
@@ 6291-6309 (lines=19) @@
6288
     *
6289
     * @return array
6290
     */
6291
    private function getExpectedMediaContentInfoProperties()
6292
    {
6293
        return [
6294
            'id' => 41,
6295
            'contentTypeId' => 1,
6296
            'name' => 'Media',
6297
            'sectionId' => 3,
6298
            'currentVersionNo' => 1,
6299
            'published' => true,
6300
            'ownerId' => 14,
6301
            'modificationDate' => $this->createDateTime(1060695457),
6302
            'publishedDate' => $this->createDateTime(1060695457),
6303
            'alwaysAvailable' => 1,
6304
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
6305
            'mainLanguageCode' => 'eng-US',
6306
            'mainLocationId' => 43,
6307
            'status' => ContentInfo::STATUS_PUBLISHED,
6308
        ];
6309
    }
6310
6311
    /**
6312
     * @covers \eZ\Publish\API\Repository\ContentService::hideContent