Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 2158-2176 (lines=19) @@
2155
        return $contentCreateStruct;
2156
    }
2157
2158
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2159
    {
2160
        return [
2161
            [
2162
                'eng-US',
2163
                [
2164
                    new Field(
2165
                        [
2166
                            'fieldDefIdentifier' => 'identifier',
2167
                            'value' => self::EMPTY_FIELD_VALUE,
2168
                            'languageCode' => null,
2169
                        ]
2170
                    ),
2171
                ],
2172
                'identifier',
2173
                'eng-US',
2174
            ],
2175
        ];
2176
    }
2177
2178
    /**
2179
     * Test for the createContent() method.
@@ 4951-4969 (lines=19) @@
4948
        return [$content->versionInfo, $contentUpdateStruct];
4949
    }
4950
4951
    public function providerForTestUpdateContentRequiredField()
4952
    {
4953
        return [
4954
            [
4955
                'eng-US',
4956
                [
4957
                    new Field(
4958
                        [
4959
                            'fieldDefIdentifier' => 'identifier',
4960
                            'value' => self::EMPTY_FIELD_VALUE,
4961
                            'languageCode' => null,
4962
                        ]
4963
                    ),
4964
                ],
4965
                'identifier',
4966
                'eng-US',
4967
            ],
4968
        ];
4969
    }
4970
4971
    /**
4972
     * Test for the updateContent() method.