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.
@@ 6251-6269 (lines=19) @@
6248
     *
6249
     * @return array
6250
     */
6251
    private function getExpectedMediaContentInfoProperties()
6252
    {
6253
        return [
6254
            'id' => 41,
6255
            'contentTypeId' => 1,
6256
            'name' => 'Media',
6257
            'sectionId' => 3,
6258
            'currentVersionNo' => 1,
6259
            'published' => true,
6260
            'ownerId' => 14,
6261
            'modificationDate' => $this->createDateTime(1060695457),
6262
            'publishedDate' => $this->createDateTime(1060695457),
6263
            'alwaysAvailable' => 1,
6264
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
6265
            'mainLanguageCode' => 'eng-US',
6266
            'mainLocationId' => 43,
6267
            'status' => ContentInfo::STATUS_PUBLISHED,
6268
        ];
6269
    }
6270
6271
    /**
6272
     * @covers \eZ\Publish\API\Repository\ContentService::hideContent