Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 2126-2144 (lines=19) @@
2123
        return $contentCreateStruct;
2124
    }
2125
2126
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2127
    {
2128
        return [
2129
            [
2130
                'eng-US',
2131
                [
2132
                    new Field(
2133
                        [
2134
                            'fieldDefIdentifier' => 'identifier',
2135
                            'value' => self::EMPTY_FIELD_VALUE,
2136
                            'languageCode' => null,
2137
                        ]
2138
                    ),
2139
                ],
2140
                'identifier',
2141
                'eng-US',
2142
            ],
2143
        ];
2144
    }
2145
2146
    /**
2147
     * Test for the createContent() method.
@@ 4928-4946 (lines=19) @@
4925
        return [$content->versionInfo, $contentUpdateStruct];
4926
    }
4927
4928
    public function providerForTestUpdateContentRequiredField()
4929
    {
4930
        return [
4931
            [
4932
                'eng-US',
4933
                [
4934
                    new Field(
4935
                        [
4936
                            'fieldDefIdentifier' => 'identifier',
4937
                            'value' => self::EMPTY_FIELD_VALUE,
4938
                            'languageCode' => null,
4939
                        ]
4940
                    ),
4941
                ],
4942
                'identifier',
4943
                'eng-US',
4944
            ],
4945
        ];
4946
    }
4947
4948
    /**
4949
     * Test for the updateContent() method.