Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 2168-2186 (lines=19) @@
2165
        return $contentCreateStruct;
2166
    }
2167
2168
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2169
    {
2170
        return [
2171
            [
2172
                'eng-US',
2173
                [
2174
                    new Field(
2175
                        [
2176
                            'fieldDefIdentifier' => 'identifier',
2177
                            'value' => self::EMPTY_FIELD_VALUE,
2178
                            'languageCode' => null,
2179
                        ]
2180
                    ),
2181
                ],
2182
                'identifier',
2183
                'eng-US',
2184
            ],
2185
        ];
2186
    }
2187
2188
    /**
2189
     * Test for the createContent() method.
@@ 4970-4988 (lines=19) @@
4967
        return [$content->versionInfo, $contentUpdateStruct];
4968
    }
4969
4970
    public function providerForTestUpdateContentRequiredField()
4971
    {
4972
        return [
4973
            [
4974
                'eng-US',
4975
                [
4976
                    new Field(
4977
                        [
4978
                            'fieldDefIdentifier' => 'identifier',
4979
                            'value' => self::EMPTY_FIELD_VALUE,
4980
                            'languageCode' => null,
4981
                        ]
4982
                    ),
4983
                ],
4984
                'identifier',
4985
                'eng-US',
4986
            ],
4987
        ];
4988
    }
4989
4990
    /**
4991
     * Test for the updateContent() method.