Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 2162-2180 (lines=19) @@
2159
        return $contentCreateStruct;
2160
    }
2161
2162
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2163
    {
2164
        return [
2165
            [
2166
                'eng-US',
2167
                [
2168
                    new Field(
2169
                        [
2170
                            'fieldDefIdentifier' => 'identifier',
2171
                            'value' => self::EMPTY_FIELD_VALUE,
2172
                            'languageCode' => null,
2173
                        ]
2174
                    ),
2175
                ],
2176
                'identifier',
2177
                'eng-US',
2178
            ],
2179
        ];
2180
    }
2181
2182
    /**
2183
     * Test for the createContent() method.
@@ 4977-4995 (lines=19) @@
4974
        return [$content->versionInfo, $contentUpdateStruct];
4975
    }
4976
4977
    public function providerForTestUpdateContentRequiredField()
4978
    {
4979
        return [
4980
            [
4981
                'eng-US',
4982
                [
4983
                    new Field(
4984
                        [
4985
                            'fieldDefIdentifier' => 'identifier',
4986
                            'value' => self::EMPTY_FIELD_VALUE,
4987
                            'languageCode' => null,
4988
                        ]
4989
                    ),
4990
                ],
4991
                'identifier',
4992
                'eng-US',
4993
            ],
4994
        ];
4995
    }
4996
4997
    /**
4998
     * Test for the updateContent() method.