Code Duplication    Length = 19-21 lines in 2 locations

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

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