Code Duplication    Length = 18-21 lines in 2 locations

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

@@ 572-592 (lines=21) @@
569
     *
570
     * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
571
     */
572
    public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo)
573
    {
574
        $this->assertPropertiesCorrectUnsorted(
575
            [
576
                'id' => 10,
577
                'contentTypeId' => 4,
578
                'name' => 'Anonymous User',
579
                'sectionId' => 2,
580
                'currentVersionNo' => 2,
581
                'published' => true,
582
                'ownerId' => 14,
583
                'modificationDate' => $this->createDateTime(1072180405),
584
                'publishedDate' => $this->createDateTime(1033920665),
585
                'alwaysAvailable' => 1,
586
                'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca',
587
                'mainLanguageCode' => 'eng-US',
588
                'mainLocationId' => 45,
589
            ],
590
            $contentInfo
591
        );
592
    }
593
594
    /**
595
     * Test for the loadContentInfoByRemoteId() method.
@@ 5866-5883 (lines=18) @@
5863
     *
5864
     * @return array
5865
     */
5866
    private function getExpectedMediaContentInfoProperties()
5867
    {
5868
        return [
5869
            'id' => 41,
5870
            'contentTypeId' => 1,
5871
            'name' => 'Media',
5872
            'sectionId' => 3,
5873
            'currentVersionNo' => 1,
5874
            'published' => true,
5875
            'ownerId' => 14,
5876
            'modificationDate' => $this->createDateTime(1060695457),
5877
            'publishedDate' => $this->createDateTime(1060695457),
5878
            'alwaysAvailable' => 1,
5879
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
5880
            'mainLanguageCode' => 'eng-US',
5881
            'mainLocationId' => 43,
5882
        ];
5883
    }
5884
}
5885