Code Duplication    Length = 19-21 lines in 2 locations

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

@@ 609-629 (lines=21) @@
606
     *
607
     * @param ContentInfo $contentInfo
608
     */
609
    public function testLoadContentInfoByRemoteIdSetsExpectedContentInfo(ContentInfo $contentInfo)
610
    {
611
        $this->assertPropertiesCorrectUnsorted(
612
            [
613
                'id' => 10,
614
                'contentTypeId' => 4,
615
                'name' => 'Anonymous User',
616
                'sectionId' => 2,
617
                'currentVersionNo' => 2,
618
                'published' => true,
619
                'ownerId' => 14,
620
                'modificationDate' => $this->createDateTime(1072180405),
621
                'publishedDate' => $this->createDateTime(1033920665),
622
                'alwaysAvailable' => 1,
623
                'remoteId' => 'faaeb9be3bd98ed09f606fc16d144eca',
624
                'mainLanguageCode' => 'eng-US',
625
                'mainLocationId' => 45,
626
            ],
627
            $contentInfo
628
        );
629
    }
630
631
    /**
632
     * Test for the loadContentInfoByRemoteId() method.
@@ 5918-5936 (lines=19) @@
5915
     *
5916
     * @return array
5917
     */
5918
    private function getExpectedMediaContentInfoProperties()
5919
    {
5920
        return [
5921
            'id' => 41,
5922
            'contentTypeId' => 1,
5923
            'name' => 'Media',
5924
            'sectionId' => 3,
5925
            'currentVersionNo' => 1,
5926
            'published' => true,
5927
            'ownerId' => 14,
5928
            'modificationDate' => $this->createDateTime(1060695457),
5929
            'publishedDate' => $this->createDateTime(1060695457),
5930
            'alwaysAvailable' => 1,
5931
            'remoteId' => 'a6e35cbcb7cd6ae4b691f3eee30cd262',
5932
            'mainLanguageCode' => 'eng-US',
5933
            'mainLocationId' => 43,
5934
            'status' => ContentInfo::STATUS_PUBLISHED,
5935
        ];
5936
    }
5937
5938
    /**
5939
     * @covers \eZ\Publish\API\Repository\ContentService::hideContent