Code Duplication    Length = 19-21 lines in 2 locations

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

@@ 578-598 (lines=21) @@
575
     *
576
     * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
577
     */
578
    public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo)
579
    {
580
        $this->assertPropertiesCorrectUnsorted(
581
            [
582
                'id' => 10,
583
                'contentTypeId' => 4,
584
                'name' => 'Anonymous User',
585
                'sectionId' => 2,
586
                'currentVersionNo' => 2,
587
                'published' => true,
588
                'ownerId' => 14,
589
                'modificationDate' => $this->createDateTime(1072180405),
590
                'publishedDate' => $this->createDateTime(1033920665),
591
                'alwaysAvailable' => 1,
592
                'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca',
593
                'mainLanguageCode' => 'eng-US',
594
                'mainLocationId' => 45,
595
            ],
596
            $contentInfo
597
        );
598
    }
599
600
    /**
601
     * Test for the loadContentInfoByRemoteId() method.
@@ 6231-6249 (lines=19) @@
6228
     *
6229
     * @return array
6230
     */
6231
    private function getExpectedMediaContentInfoProperties()
6232
    {
6233
        return [
6234
            'id' => 41,
6235
            'contentTypeId' => 1,
6236
            'name' => 'Media',
6237
            'sectionId' => 3,
6238
            'currentVersionNo' => 1,
6239
            'published' => true,
6240
            'ownerId' => 14,
6241
            'modificationDate' => $this->createDateTime(1060695457),
6242
            'publishedDate' => $this->createDateTime(1060695457),
6243
            'alwaysAvailable' => 1,
6244
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
6245
            'mainLanguageCode' => 'eng-US',
6246
            'mainLocationId' => 43,
6247
            'status' => ContentInfo::STATUS_PUBLISHED,
6248
        ];
6249
    }
6250
}
6251