Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 2153-2171 (lines=19) @@
2150
        return $contentCreateStruct;
2151
    }
2152
2153
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2154
    {
2155
        return [
2156
            [
2157
                'eng-US',
2158
                [
2159
                    new Field(
2160
                        [
2161
                            'fieldDefIdentifier' => 'identifier',
2162
                            'value' => self::EMPTY_FIELD_VALUE,
2163
                            'languageCode' => null,
2164
                        ]
2165
                    ),
2166
                ],
2167
                'identifier',
2168
                'eng-US',
2169
            ],
2170
        ];
2171
    }
2172
2173
    /**
2174
     * Test for the createContent() method.
@@ 4965-4983 (lines=19) @@
4962
        return [$content->versionInfo, $contentUpdateStruct];
4963
    }
4964
4965
    public function providerForTestUpdateContentRequiredField()
4966
    {
4967
        return [
4968
            [
4969
                'eng-US',
4970
                [
4971
                    new Field(
4972
                        [
4973
                            'fieldDefIdentifier' => 'identifier',
4974
                            'value' => self::EMPTY_FIELD_VALUE,
4975
                            'languageCode' => null,
4976
                        ]
4977
                    ),
4978
                ],
4979
                'identifier',
4980
                'eng-US',
4981
            ],
4982
        ];
4983
    }
4984
4985
    /**
4986
     * Test for the updateContent() method.