Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 1929-1945 (lines=17) @@
1926
        $mockedService->createContent($contentCreateStruct, array());
1927
    }
1928
1929
    public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition()
1930
    {
1931
        return array(
1932
            array(
1933
                'eng-GB',
1934
                array(
1935
                    new Field(
1936
                        array(
1937
                            'fieldDefIdentifier' => 'identifier',
1938
                            'value' => 'newValue',
1939
                            'languageCode' => 'eng-GB',
1940
                        )
1941
                    ),
1942
                ),
1943
            ),
1944
        );
1945
    }
1946
1947
    /**
1948
     * Test for the createContent() method.
@@ 1967-1983 (lines=17) @@
1964
        );
1965
    }
1966
1967
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
1968
    {
1969
        return array(
1970
            array(
1971
                'eng-GB',
1972
                array(
1973
                    new Field(
1974
                        array(
1975
                            'fieldDefIdentifier' => 'identifier',
1976
                            'value' => 'newValue',
1977
                            'languageCode' => 'eng-US',
1978
                        )
1979
                    ),
1980
                ),
1981
            ),
1982
        );
1983
    }
1984
1985
    /**
1986
     * Test for the createContent() method.
@@ 4740-4756 (lines=17) @@
4737
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4738
    }
4739
4740
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4741
    {
4742
        return array(
4743
            array(
4744
                'eng-GB',
4745
                array(
4746
                    new Field(
4747
                        array(
4748
                            'fieldDefIdentifier' => 'identifier',
4749
                            'value' => 'newValue',
4750
                            'languageCode' => 'eng-GB',
4751
                        )
4752
                    ),
4753
                ),
4754
            ),
4755
        );
4756
    }
4757
4758
    /**
4759
     * Test for the updateContent() method.
@@ 4778-4794 (lines=17) @@
4775
        );
4776
    }
4777
4778
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4779
    {
4780
        return array(
4781
            array(
4782
                'eng-US',
4783
                array(
4784
                    new Field(
4785
                        array(
4786
                            'fieldDefIdentifier' => 'identifier',
4787
                            'value' => 'newValue',
4788
                            'languageCode' => 'eng-US',
4789
                        )
4790
                    ),
4791
                ),
4792
            ),
4793
        );
4794
    }
4795
4796
    /**
4797
     * Test for the updateContent() method.