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.
@@ 1985-2001 (lines=17) @@
1982
        );
1983
    }
1984
1985
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
1986
    {
1987
        return [
1988
            [
1989
                'eng-GB',
1990
                [
1991
                    new Field(
1992
                        [
1993
                            'fieldDefIdentifier' => 'identifier',
1994
                            'value' => 'newValue',
1995
                            'languageCode' => 'eng-US',
1996
                        ]
1997
                    ),
1998
                ],
1999
            ],
2000
        ];
2001
    }
2002
2003
    /**
2004
     * Test for the createContent() method.
@@ 4743-4759 (lines=17) @@
4740
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4741
    }
4742
4743
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4744
    {
4745
        return [
4746
            [
4747
                'eng-GB',
4748
                [
4749
                    new Field(
4750
                        [
4751
                            'fieldDefIdentifier' => 'identifier',
4752
                            'value' => 'newValue',
4753
                            'languageCode' => 'eng-GB',
4754
                        ]
4755
                    ),
4756
                ],
4757
            ],
4758
        ];
4759
    }
4760
4761
    /**
4762
     * Test for the updateContent() method.
@@ 4780-4796 (lines=17) @@
4777
        );
4778
    }
4779
4780
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4781
    {
4782
        return [
4783
            [
4784
                'eng-US',
4785
                [
4786
                    new Field(
4787
                        [
4788
                            'fieldDefIdentifier' => 'identifier',
4789
                            'value' => 'newValue',
4790
                            'languageCode' => 'eng-US',
4791
                        ]
4792
                    ),
4793
                ],
4794
            ],
4795
        ];
4796
    }
4797
4798
    /**
4799
     * Test for the updateContent() method.