Code Duplication    Length = 19-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.
@@ 6020-6038 (lines=19) @@
6017
     *
6018
     * @return array
6019
     */
6020
    private function getExpectedMediaContentInfoProperties()
6021
    {
6022
        return [
6023
            'id' => 41,
6024
            'contentTypeId' => 1,
6025
            'name' => 'Media',
6026
            'sectionId' => 3,
6027
            'currentVersionNo' => 1,
6028
            'published' => true,
6029
            'ownerId' => 14,
6030
            'modificationDate' => $this->createDateTime(1060695457),
6031
            'publishedDate' => $this->createDateTime(1060695457),
6032
            'alwaysAvailable' => 1,
6033
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
6034
            'mainLanguageCode' => 'eng-US',
6035
            'mainLocationId' => 43,
6036
            'status' => ContentInfo::STATUS_PUBLISHED,
6037
        ];
6038
    }
6039
}
6040