Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 4935-4953 (lines=19) @@
4932
        return [$content->versionInfo, $contentUpdateStruct];
4933
    }
4934
4935
    public function providerForTestUpdateContentRequiredField()
4936
    {
4937
        return [
4938
            [
4939
                'eng-US',
4940
                [
4941
                    new Field(
4942
                        [
4943
                            'fieldDefIdentifier' => 'identifier',
4944
                            'value' => self::EMPTY_FIELD_VALUE,
4945
                            'languageCode' => null,
4946
                        ]
4947
                    ),
4948
                ],
4949
                'identifier',
4950
                'eng-US',
4951
            ],
4952
        ];
4953
    }
4954
4955
    /**
4956
     * Test for the updateContent() method.
@@ 2120-2138 (lines=19) @@
2117
        return $contentCreateStruct;
2118
    }
2119
2120
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2121
    {
2122
        return [
2123
            [
2124
                'eng-US',
2125
                [
2126
                    new Field(
2127
                        [
2128
                            'fieldDefIdentifier' => 'identifier',
2129
                            'value' => self::EMPTY_FIELD_VALUE,
2130
                            'languageCode' => null,
2131
                        ]
2132
                    ),
2133
                ],
2134
                'identifier',
2135
                'eng-US',
2136
            ],
2137
        ];
2138
    }
2139
2140
    /**
2141
     * Test for the createContent() method.