Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 2164-2182 (lines=19) @@
2161
        return $contentCreateStruct;
2162
    }
2163
2164
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2165
    {
2166
        return [
2167
            [
2168
                'eng-US',
2169
                [
2170
                    new Field(
2171
                        [
2172
                            'fieldDefIdentifier' => 'identifier',
2173
                            'value' => self::EMPTY_FIELD_VALUE,
2174
                            'languageCode' => null,
2175
                        ]
2176
                    ),
2177
                ],
2178
                'identifier',
2179
                'eng-US',
2180
            ],
2181
        ];
2182
    }
2183
2184
    /**
2185
     * Test for the createContent() method.
@@ 5006-5024 (lines=19) @@
5003
        return [$content->versionInfo, $contentUpdateStruct];
5004
    }
5005
5006
    public function providerForTestUpdateContentRequiredField()
5007
    {
5008
        return [
5009
            [
5010
                'eng-US',
5011
                [
5012
                    new Field(
5013
                        [
5014
                            'fieldDefIdentifier' => 'identifier',
5015
                            'value' => self::EMPTY_FIELD_VALUE,
5016
                            'languageCode' => null,
5017
                        ]
5018
                    ),
5019
                ],
5020
                'identifier',
5021
                'eng-US',
5022
            ],
5023
        ];
5024
    }
5025
5026
    /**
5027
     * Test for the updateContent() method.