Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 1951-1967 (lines=17) @@
1948
        $mockedService->createContent($contentCreateStruct, []);
1949
    }
1950
1951
    public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition()
1952
    {
1953
        return [
1954
            [
1955
                'eng-GB',
1956
                [
1957
                    new Field(
1958
                        [
1959
                            'fieldDefIdentifier' => 'identifier',
1960
                            'value' => 'newValue',
1961
                            'languageCode' => 'eng-GB',
1962
                        ]
1963
                    ),
1964
                ],
1965
            ],
1966
        ];
1967
    }
1968
1969
    /**
1970
     * Test for the createContent() method.
@@ 1989-2005 (lines=17) @@
1986
        );
1987
    }
1988
1989
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
1990
    {
1991
        return [
1992
            [
1993
                'eng-GB',
1994
                [
1995
                    new Field(
1996
                        [
1997
                            'fieldDefIdentifier' => 'identifier',
1998
                            'value' => 'newValue',
1999
                            'languageCode' => 'eng-US',
2000
                        ]
2001
                    ),
2002
                ],
2003
            ],
2004
        ];
2005
    }
2006
2007
    /**
2008
     * Test for the createContent() method.
@@ 4787-4803 (lines=17) @@
4784
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4785
    }
4786
4787
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4788
    {
4789
        return [
4790
            [
4791
                'eng-GB',
4792
                [
4793
                    new Field(
4794
                        [
4795
                            'fieldDefIdentifier' => 'identifier',
4796
                            'value' => 'newValue',
4797
                            'languageCode' => 'eng-GB',
4798
                        ]
4799
                    ),
4800
                ],
4801
            ],
4802
        ];
4803
    }
4804
4805
    /**
4806
     * Test for the updateContent() method.
@@ 4825-4841 (lines=17) @@
4822
        );
4823
    }
4824
4825
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4826
    {
4827
        return [
4828
            [
4829
                'eng-US',
4830
                [
4831
                    new Field(
4832
                        [
4833
                            'fieldDefIdentifier' => 'identifier',
4834
                            'value' => 'newValue',
4835
                            'languageCode' => 'eng-US',
4836
                        ]
4837
                    ),
4838
                ],
4839
            ],
4840
        ];
4841
    }
4842
4843
    /**
4844
     * Test for the updateContent() method.