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.
@@ 5414-5431 (lines=18) @@
5411
     *
5412
     * @return array
5413
     */
5414
    private function getExpectedMediaContentInfoProperties()
5415
    {
5416
        return [
5417
            'id' => 41,
5418
            'contentTypeId' => 1,
5419
            'name' => 'Media',
5420
            'sectionId' => 3,
5421
            'currentVersionNo' => 1,
5422
            'published' => true,
5423
            'ownerId' => 14,
5424
            'modificationDate' => $this->createDateTime(1060695457),
5425
            'publishedDate' => $this->createDateTime(1060695457),
5426
            'alwaysAvailable' => 1,
5427
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
5428
            'mainLanguageCode' => 'eng-US',
5429
            'mainLocationId' => 43,
5430
        ];
5431
    }
5432
}
5433