Code Duplication    Length = 19-21 lines in 2 locations

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

@@ 575-595 (lines=21) @@
572
     *
573
     * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
574
     */
575
    public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo)
576
    {
577
        $this->assertPropertiesCorrectUnsorted(
578
            [
579
                'id' => 10,
580
                'contentTypeId' => 4,
581
                'name' => 'Anonymous User',
582
                'sectionId' => 2,
583
                'currentVersionNo' => 2,
584
                'published' => true,
585
                'ownerId' => 14,
586
                'modificationDate' => $this->createDateTime(1072180405),
587
                'publishedDate' => $this->createDateTime(1033920665),
588
                'alwaysAvailable' => 1,
589
                'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca',
590
                'mainLanguageCode' => 'eng-US',
591
                'mainLocationId' => 45,
592
            ],
593
            $contentInfo
594
        );
595
    }
596
597
    /**
598
     * Test for the loadContentInfoByRemoteId() method.
@@ 6138-6156 (lines=19) @@
6135
     *
6136
     * @return array
6137
     */
6138
    private function getExpectedMediaContentInfoProperties()
6139
    {
6140
        return [
6141
            'id' => 41,
6142
            'contentTypeId' => 1,
6143
            'name' => 'Media',
6144
            'sectionId' => 3,
6145
            'currentVersionNo' => 1,
6146
            'published' => true,
6147
            'ownerId' => 14,
6148
            'modificationDate' => $this->createDateTime(1060695457),
6149
            'publishedDate' => $this->createDateTime(1060695457),
6150
            'alwaysAvailable' => 1,
6151
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
6152
            'mainLanguageCode' => 'eng-US',
6153
            'mainLocationId' => 43,
6154
            'status' => ContentInfo::STATUS_PUBLISHED,
6155
        ];
6156
    }
6157
}
6158