Code Duplication    Length = 19-19 lines in 2 locations

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

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