Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 2135-2153 (lines=19) @@
2132
        return $contentCreateStruct;
2133
    }
2134
2135
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2136
    {
2137
        return [
2138
            [
2139
                'eng-US',
2140
                [
2141
                    new Field(
2142
                        [
2143
                            'fieldDefIdentifier' => 'identifier',
2144
                            'value' => self::EMPTY_FIELD_VALUE,
2145
                            'languageCode' => null,
2146
                        ]
2147
                    ),
2148
                ],
2149
                'identifier',
2150
                'eng-US',
2151
            ],
2152
        ];
2153
    }
2154
2155
    /**
2156
     * Test for the createContent() method.
@@ 4946-4964 (lines=19) @@
4943
        return [$content->versionInfo, $contentUpdateStruct];
4944
    }
4945
4946
    public function providerForTestUpdateContentRequiredField()
4947
    {
4948
        return [
4949
            [
4950
                'eng-US',
4951
                [
4952
                    new Field(
4953
                        [
4954
                            'fieldDefIdentifier' => 'identifier',
4955
                            'value' => self::EMPTY_FIELD_VALUE,
4956
                            'languageCode' => null,
4957
                        ]
4958
                    ),
4959
                ],
4960
                'identifier',
4961
                'eng-US',
4962
            ],
4963
        ];
4964
    }
4965
4966
    /**
4967
     * Test for the updateContent() method.