Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 1925-1941 (lines=17) @@
1922
        $mockedService->createContent($contentCreateStruct, array());
1923
    }
1924
1925
    public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition()
1926
    {
1927
        return array(
1928
            array(
1929
                'eng-GB',
1930
                array(
1931
                    new Field(
1932
                        array(
1933
                            'fieldDefIdentifier' => 'identifier',
1934
                            'value' => 'newValue',
1935
                            'languageCode' => 'eng-GB',
1936
                        )
1937
                    ),
1938
                ),
1939
            ),
1940
        );
1941
    }
1942
1943
    /**
1944
     * Test for the createContent() method.
@@ 1962-1978 (lines=17) @@
1959
        );
1960
    }
1961
1962
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
1963
    {
1964
        return array(
1965
            array(
1966
                'eng-GB',
1967
                array(
1968
                    new Field(
1969
                        array(
1970
                            'fieldDefIdentifier' => 'identifier',
1971
                            'value' => 'newValue',
1972
                            'languageCode' => 'eng-US',
1973
                        )
1974
                    ),
1975
                ),
1976
            ),
1977
        );
1978
    }
1979
1980
    /**
1981
     * Test for the createContent() method.
@@ 4720-4736 (lines=17) @@
4717
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4718
    }
4719
4720
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4721
    {
4722
        return array(
4723
            array(
4724
                'eng-GB',
4725
                array(
4726
                    new Field(
4727
                        array(
4728
                            'fieldDefIdentifier' => 'identifier',
4729
                            'value' => 'newValue',
4730
                            'languageCode' => 'eng-GB',
4731
                        )
4732
                    ),
4733
                ),
4734
            ),
4735
        );
4736
    }
4737
4738
    /**
4739
     * Test for the updateContent() method.
@@ 4757-4773 (lines=17) @@
4754
        );
4755
    }
4756
4757
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4758
    {
4759
        return array(
4760
            array(
4761
                'eng-US',
4762
                array(
4763
                    new Field(
4764
                        array(
4765
                            'fieldDefIdentifier' => 'identifier',
4766
                            'value' => 'newValue',
4767
                            'languageCode' => 'eng-US',
4768
                        )
4769
                    ),
4770
                ),
4771
            ),
4772
        );
4773
    }
4774
4775
    /**
4776
     * Test for the updateContent() method.