Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 2026-2037 (lines=12) @@
2023
     *
2024
     * @return \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct
2025
     */
2026
    protected function getRelationCreateStructFixture()
2027
    {
2028
        $struct = new RelationCreateStruct();
2029
2030
        $struct->destinationContentId = 1;
2031
        $struct->sourceContentId = 1;
2032
        $struct->sourceContentVersionNo = 1;
2033
        $struct->sourceFieldDefinitionId = 0;
2034
        $struct->type = RelationValue::COMMON;
2035
2036
        return $struct;
2037
    }
2038
}
2039

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

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