Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 1948-1964 (lines=17) @@
1945
        $mockedService->createContent($contentCreateStruct, []);
1946
    }
1947
1948
    public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition()
1949
    {
1950
        return [
1951
            [
1952
                'eng-GB',
1953
                [
1954
                    new Field(
1955
                        [
1956
                            'fieldDefIdentifier' => 'identifier',
1957
                            'value' => 'newValue',
1958
                            'languageCode' => 'eng-GB',
1959
                        ]
1960
                    ),
1961
                ],
1962
            ],
1963
        ];
1964
    }
1965
1966
    /**
1967
     * Test for the createContent() method.
@@ 1986-2002 (lines=17) @@
1983
        );
1984
    }
1985
1986
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
1987
    {
1988
        return [
1989
            [
1990
                'eng-GB',
1991
                [
1992
                    new Field(
1993
                        [
1994
                            'fieldDefIdentifier' => 'identifier',
1995
                            'value' => 'newValue',
1996
                            'languageCode' => 'eng-US',
1997
                        ]
1998
                    ),
1999
                ],
2000
            ],
2001
        ];
2002
    }
2003
2004
    /**
2005
     * Test for the createContent() method.
@@ 4765-4781 (lines=17) @@
4762
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4763
    }
4764
4765
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4766
    {
4767
        return [
4768
            [
4769
                'eng-GB',
4770
                [
4771
                    new Field(
4772
                        [
4773
                            'fieldDefIdentifier' => 'identifier',
4774
                            'value' => 'newValue',
4775
                            'languageCode' => 'eng-GB',
4776
                        ]
4777
                    ),
4778
                ],
4779
            ],
4780
        ];
4781
    }
4782
4783
    /**
4784
     * Test for the updateContent() method.
@@ 4803-4819 (lines=17) @@
4800
        );
4801
    }
4802
4803
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4804
    {
4805
        return [
4806
            [
4807
                'eng-US',
4808
                [
4809
                    new Field(
4810
                        [
4811
                            'fieldDefIdentifier' => 'identifier',
4812
                            'value' => 'newValue',
4813
                            'languageCode' => 'eng-US',
4814
                        ]
4815
                    ),
4816
                ],
4817
            ],
4818
        ];
4819
    }
4820
4821
    /**
4822
     * Test for the updateContent() method.