Code Duplication    Length = 18-21 lines in 2 locations

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

@@ 570-590 (lines=21) @@
567
     *
568
     * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
569
     */
570
    public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo)
571
    {
572
        $this->assertPropertiesCorrectUnsorted(
573
            [
574
                'id' => 10,
575
                'contentTypeId' => 4,
576
                'name' => 'Anonymous User',
577
                'sectionId' => 2,
578
                'currentVersionNo' => 2,
579
                'published' => true,
580
                'ownerId' => 14,
581
                'modificationDate' => $this->createDateTime(1072180405),
582
                'publishedDate' => $this->createDateTime(1033920665),
583
                'alwaysAvailable' => 1,
584
                'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca',
585
                'mainLanguageCode' => 'eng-US',
586
                'mainLocationId' => 45,
587
            ],
588
            $contentInfo
589
        );
590
    }
591
592
    /**
593
     * Test for the loadContentInfoByRemoteId() method.
@@ 5343-5360 (lines=18) @@
5340
     *
5341
     * @return array
5342
     */
5343
    private function getExpectedMediaContentInfoProperties()
5344
    {
5345
        return [
5346
            'id' => 41,
5347
            'contentTypeId' => 1,
5348
            'name' => 'Media',
5349
            'sectionId' => 3,
5350
            'currentVersionNo' => 1,
5351
            'published' => true,
5352
            'ownerId' => 14,
5353
            'modificationDate' => $this->createDateTime(1060695457),
5354
            'publishedDate' => $this->createDateTime(1060695457),
5355
            'alwaysAvailable' => 1,
5356
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
5357
            'mainLanguageCode' => 'eng-US',
5358
            'mainLocationId' => 43,
5359
        ];
5360
    }
5361
}
5362