Code Duplication    Length = 19-19 lines in 2 locations

eZ/Publish/Core/Repository/Tests/Service/Mock/ContentTest.php 2 locations

@@ 2178-2196 (lines=19) @@
2175
        return $contentCreateStruct;
2176
    }
2177
2178
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2179
    {
2180
        return [
2181
            [
2182
                'eng-US',
2183
                [
2184
                    new Field(
2185
                        [
2186
                            'fieldDefIdentifier' => 'identifier',
2187
                            'value' => self::EMPTY_FIELD_VALUE,
2188
                            'languageCode' => null,
2189
                        ]
2190
                    ),
2191
                ],
2192
                'identifier',
2193
                'eng-US',
2194
            ],
2195
        ];
2196
    }
2197
2198
    /**
2199
     * Test for the createContent() method.
@@ 5008-5026 (lines=19) @@
5005
        return [$content->versionInfo, $contentUpdateStruct];
5006
    }
5007
5008
    public function providerForTestUpdateContentRequiredField()
5009
    {
5010
        return [
5011
            [
5012
                'eng-US',
5013
                [
5014
                    new Field(
5015
                        [
5016
                            'fieldDefIdentifier' => 'identifier',
5017
                            'value' => self::EMPTY_FIELD_VALUE,
5018
                            'languageCode' => null,
5019
                        ]
5020
                    ),
5021
                ],
5022
                'identifier',
5023
                'eng-US',
5024
            ],
5025
        ];
5026
    }
5027
5028
    /**
5029
     * Test for the updateContent() method.