Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 1906-1922 (lines=17) @@
1903
        $mockedService->createContent($contentCreateStruct, []);
1904
    }
1905
1906
    public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition()
1907
    {
1908
        return [
1909
            [
1910
                'eng-GB',
1911
                [
1912
                    new Field(
1913
                        [
1914
                            'fieldDefIdentifier' => 'identifier',
1915
                            'value' => 'newValue',
1916
                            'languageCode' => 'eng-GB',
1917
                        ]
1918
                    ),
1919
                ],
1920
            ],
1921
        ];
1922
    }
1923
1924
    /**
1925
     * Test for the createContent() method.
@@ 1944-1960 (lines=17) @@
1941
        );
1942
    }
1943
1944
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
1945
    {
1946
        return [
1947
            [
1948
                'eng-GB',
1949
                [
1950
                    new Field(
1951
                        [
1952
                            'fieldDefIdentifier' => 'identifier',
1953
                            'value' => 'newValue',
1954
                            'languageCode' => 'eng-US',
1955
                        ]
1956
                    ),
1957
                ],
1958
            ],
1959
        ];
1960
    }
1961
1962
    /**
1963
     * Test for the createContent() method.
@@ 4723-4739 (lines=17) @@
4720
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4721
    }
4722
4723
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4724
    {
4725
        return [
4726
            [
4727
                'eng-GB',
4728
                [
4729
                    new Field(
4730
                        [
4731
                            'fieldDefIdentifier' => 'identifier',
4732
                            'value' => 'newValue',
4733
                            'languageCode' => 'eng-GB',
4734
                        ]
4735
                    ),
4736
                ],
4737
            ],
4738
        ];
4739
    }
4740
4741
    /**
4742
     * Test for the updateContent() method.
@@ 4761-4777 (lines=17) @@
4758
        );
4759
    }
4760
4761
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4762
    {
4763
        return [
4764
            [
4765
                'eng-US',
4766
                [
4767
                    new Field(
4768
                        [
4769
                            'fieldDefIdentifier' => 'identifier',
4770
                            'value' => 'newValue',
4771
                            'languageCode' => 'eng-US',
4772
                        ]
4773
                    ),
4774
                ],
4775
            ],
4776
        ];
4777
    }
4778
4779
    /**
4780
     * Test for the updateContent() method.