Code Duplication    Length = 18-21 lines in 2 locations

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

@@ 574-594 (lines=21) @@
571
     *
572
     * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
573
     */
574
    public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo)
575
    {
576
        $this->assertPropertiesCorrectUnsorted(
577
            [
578
                'id' => 10,
579
                'contentTypeId' => 4,
580
                'name' => 'Anonymous User',
581
                'sectionId' => 2,
582
                'currentVersionNo' => 2,
583
                'published' => true,
584
                'ownerId' => 14,
585
                'modificationDate' => $this->createDateTime(1072180405),
586
                'publishedDate' => $this->createDateTime(1033920665),
587
                'alwaysAvailable' => 1,
588
                'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca',
589
                'mainLanguageCode' => 'eng-US',
590
                'mainLocationId' => 45,
591
            ],
592
            $contentInfo
593
        );
594
    }
595
596
    /**
597
     * Test for the loadContentInfoByRemoteId() method.
@@ 5415-5432 (lines=18) @@
5412
     *
5413
     * @return array
5414
     */
5415
    private function getExpectedMediaContentInfoProperties()
5416
    {
5417
        return [
5418
            'id' => 41,
5419
            'contentTypeId' => 1,
5420
            'name' => 'Media',
5421
            'sectionId' => 3,
5422
            'currentVersionNo' => 1,
5423
            'published' => true,
5424
            'ownerId' => 14,
5425
            'modificationDate' => $this->createDateTime(1060695457),
5426
            'publishedDate' => $this->createDateTime(1060695457),
5427
            'alwaysAvailable' => 1,
5428
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
5429
            'mainLanguageCode' => 'eng-US',
5430
            'mainLocationId' => 43,
5431
        ];
5432
    }
5433
}
5434