Code Duplication    Length = 12-12 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/MapperTest.php 1 location

@@ 574-585 (lines=12) @@
571
     *
572
     * @return \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct
573
     */
574
    protected function getRelationCreateStructFixture()
575
    {
576
        $struct = new RelationCreateStruct();
577
578
        $struct->destinationContentId = 0;
579
        $struct->sourceContentId = 0;
580
        $struct->sourceContentVersionNo = 1;
581
        $struct->sourceFieldDefinitionId = 1;
582
        $struct->type = RelationValue::COMMON;
583
584
        return $struct;
585
    }
586
587
    /**
588
     * Returns a language handler mock.

eZ/Publish/Core/Persistence/Legacy/Tests/Content/Gateway/DoctrineDatabaseTest.php 1 location

@@ 2045-2056 (lines=12) @@
2042
     *
2043
     * @return \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct
2044
     */
2045
    protected function getRelationCreateStructFixture()
2046
    {
2047
        $struct = new RelationCreateStruct();
2048
2049
        $struct->destinationContentId = 1;
2050
        $struct->sourceContentId = 1;
2051
        $struct->sourceContentVersionNo = 1;
2052
        $struct->sourceFieldDefinitionId = 0;
2053
        $struct->type = RelationValue::COMMON;
2054
2055
        return $struct;
2056
    }
2057
}
2058