Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 1923-1939 (lines=17) @@
1920
        $mockedService->createContent($contentCreateStruct, []);
1921
    }
1922
1923
    public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition()
1924
    {
1925
        return [
1926
            [
1927
                'eng-GB',
1928
                [
1929
                    new Field(
1930
                        [
1931
                            'fieldDefIdentifier' => 'identifier',
1932
                            'value' => 'newValue',
1933
                            'languageCode' => 'eng-GB',
1934
                        ]
1935
                    ),
1936
                ],
1937
            ],
1938
        ];
1939
    }
1940
1941
    /**
1942
     * Test for the createContent() method.
@@ 1961-1977 (lines=17) @@
1958
        );
1959
    }
1960
1961
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
1962
    {
1963
        return [
1964
            [
1965
                'eng-GB',
1966
                [
1967
                    new Field(
1968
                        [
1969
                            'fieldDefIdentifier' => 'identifier',
1970
                            'value' => 'newValue',
1971
                            'languageCode' => 'eng-US',
1972
                        ]
1973
                    ),
1974
                ],
1975
            ],
1976
        ];
1977
    }
1978
1979
    /**
1980
     * Test for the createContent() method.
@@ 4734-4750 (lines=17) @@
4731
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4732
    }
4733
4734
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4735
    {
4736
        return [
4737
            [
4738
                'eng-GB',
4739
                [
4740
                    new Field(
4741
                        [
4742
                            'fieldDefIdentifier' => 'identifier',
4743
                            'value' => 'newValue',
4744
                            'languageCode' => 'eng-GB',
4745
                        ]
4746
                    ),
4747
                ],
4748
            ],
4749
        ];
4750
    }
4751
4752
    /**
4753
     * Test for the updateContent() method.
@@ 4772-4788 (lines=17) @@
4769
        );
4770
    }
4771
4772
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4773
    {
4774
        return [
4775
            [
4776
                'eng-US',
4777
                [
4778
                    new Field(
4779
                        [
4780
                            'fieldDefIdentifier' => 'identifier',
4781
                            'value' => 'newValue',
4782
                            'languageCode' => 'eng-US',
4783
                        ]
4784
                    ),
4785
                ],
4786
            ],
4787
        ];
4788
    }
4789
4790
    /**
4791
     * Test for the updateContent() method.