Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 1912-1928 (lines=17) @@
1909
        $mockedService->createContent($contentCreateStruct, array());
1910
    }
1911
1912
    public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition()
1913
    {
1914
        return array(
1915
            array(
1916
                'eng-GB',
1917
                array(
1918
                    new Field(
1919
                        array(
1920
                            'fieldDefIdentifier' => 'identifier',
1921
                            'value' => 'newValue',
1922
                            'languageCode' => 'eng-GB',
1923
                        )
1924
                    ),
1925
                ),
1926
            ),
1927
        );
1928
    }
1929
1930
    /**
1931
     * Test for the createContent() method.
@@ 1949-1965 (lines=17) @@
1946
        );
1947
    }
1948
1949
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
1950
    {
1951
        return array(
1952
            array(
1953
                'eng-GB',
1954
                array(
1955
                    new Field(
1956
                        array(
1957
                            'fieldDefIdentifier' => 'identifier',
1958
                            'value' => 'newValue',
1959
                            'languageCode' => 'eng-US',
1960
                        )
1961
                    ),
1962
                ),
1963
            ),
1964
        );
1965
    }
1966
1967
    /**
1968
     * Test for the createContent() method.
@@ 4707-4723 (lines=17) @@
4704
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4705
    }
4706
4707
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4708
    {
4709
        return array(
4710
            array(
4711
                'eng-GB',
4712
                array(
4713
                    new Field(
4714
                        array(
4715
                            'fieldDefIdentifier' => 'identifier',
4716
                            'value' => 'newValue',
4717
                            'languageCode' => 'eng-GB',
4718
                        )
4719
                    ),
4720
                ),
4721
            ),
4722
        );
4723
    }
4724
4725
    /**
4726
     * Test for the updateContent() method.
@@ 4744-4760 (lines=17) @@
4741
        );
4742
    }
4743
4744
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4745
    {
4746
        return array(
4747
            array(
4748
                'eng-US',
4749
                array(
4750
                    new Field(
4751
                        array(
4752
                            'fieldDefIdentifier' => 'identifier',
4753
                            'value' => 'newValue',
4754
                            'languageCode' => 'eng-US',
4755
                        )
4756
                    ),
4757
                ),
4758
            ),
4759
        );
4760
    }
4761
4762
    /**
4763
     * Test for the updateContent() method.