Code Duplication    Length = 19-19 lines in 2 locations

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

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