Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 2093-2111 (lines=19) @@
2090
        return $contentCreateStruct;
2091
    }
2092
2093
    public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField()
2094
    {
2095
        return array(
2096
            array(
2097
                'eng-US',
2098
                array(
2099
                    new Field(
2100
                        array(
2101
                            'fieldDefIdentifier' => 'identifier',
2102
                            'value' => self::EMPTY_FIELD_VALUE,
2103
                            'languageCode' => null,
2104
                        )
2105
                    ),
2106
                ),
2107
                'identifier',
2108
                'eng-US',
2109
            ),
2110
        );
2111
    }
2112
2113
    /**
2114
     * Test for the createContent() method.
@@ 4904-4922 (lines=19) @@
4901
        return array($content->versionInfo, $contentUpdateStruct);
4902
    }
4903
4904
    public function providerForTestUpdateContentRequiredField()
4905
    {
4906
        return array(
4907
            array(
4908
                'eng-US',
4909
                array(
4910
                    new Field(
4911
                        array(
4912
                            'fieldDefIdentifier' => 'identifier',
4913
                            'value' => self::EMPTY_FIELD_VALUE,
4914
                            'languageCode' => null,
4915
                        )
4916
                    ),
4917
                ),
4918
                'identifier',
4919
                'eng-US',
4920
            ),
4921
        );
4922
    }
4923
4924
    /**
4925
     * Test for the updateContent() method.