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.
@@ 5930-5947 (lines=18) @@
5927
     *
5928
     * @return array
5929
     */
5930
    private function getExpectedMediaContentInfoProperties()
5931
    {
5932
        return [
5933
            'id' => 41,
5934
            'contentTypeId' => 1,
5935
            'name' => 'Media',
5936
            'sectionId' => 3,
5937
            'currentVersionNo' => 1,
5938
            'published' => true,
5939
            'ownerId' => 14,
5940
            'modificationDate' => $this->createDateTime(1060695457),
5941
            'publishedDate' => $this->createDateTime(1060695457),
5942
            'alwaysAvailable' => 1,
5943
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
5944
            'mainLanguageCode' => 'eng-US',
5945
            'mainLocationId' => 43,
5946
        ];
5947
    }
5948
}
5949