Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 1968-1984 (lines=17) @@
1965
        $mockedService->createContent($contentCreateStruct, []);
1966
    }
1967
1968
    public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition()
1969
    {
1970
        return [
1971
            [
1972
                'eng-GB',
1973
                [
1974
                    new Field(
1975
                        [
1976
                            'fieldDefIdentifier' => 'identifier',
1977
                            'value' => 'newValue',
1978
                            'languageCode' => 'eng-GB',
1979
                        ]
1980
                    ),
1981
                ],
1982
            ],
1983
        ];
1984
    }
1985
1986
    /**
1987
     * Test for the createContent() method.
@@ 2005-2021 (lines=17) @@
2002
        );
2003
    }
2004
2005
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
2006
    {
2007
        return [
2008
            [
2009
                'eng-GB',
2010
                [
2011
                    new Field(
2012
                        [
2013
                            'fieldDefIdentifier' => 'identifier',
2014
                            'value' => 'newValue',
2015
                            'languageCode' => 'eng-US',
2016
                        ]
2017
                    ),
2018
                ],
2019
            ],
2020
        ];
2021
    }
2022
2023
    /**
2024
     * Test for the createContent() method.
@@ 4792-4808 (lines=17) @@
4789
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4790
    }
4791
4792
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4793
    {
4794
        return [
4795
            [
4796
                'eng-GB',
4797
                [
4798
                    new Field(
4799
                        [
4800
                            'fieldDefIdentifier' => 'identifier',
4801
                            'value' => 'newValue',
4802
                            'languageCode' => 'eng-GB',
4803
                        ]
4804
                    ),
4805
                ],
4806
            ],
4807
        ];
4808
    }
4809
4810
    /**
4811
     * Test for the updateContent() method.
@@ 4829-4845 (lines=17) @@
4826
        );
4827
    }
4828
4829
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4830
    {
4831
        return [
4832
            [
4833
                'eng-US',
4834
                [
4835
                    new Field(
4836
                        [
4837
                            'fieldDefIdentifier' => 'identifier',
4838
                            'value' => 'newValue',
4839
                            'languageCode' => 'eng-US',
4840
                        ]
4841
                    ),
4842
                ],
4843
            ],
4844
        ];
4845
    }
4846
4847
    /**
4848
     * Test for the updateContent() method.