Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 1881-1897 (lines=17) @@
1878
        $mockedService->createContent($contentCreateStruct, array());
1879
    }
1880
1881
    public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition()
1882
    {
1883
        return array(
1884
            array(
1885
                'eng-GB',
1886
                array(
1887
                    new Field(
1888
                        array(
1889
                            'fieldDefIdentifier' => 'identifier',
1890
                            'value' => 'newValue',
1891
                            'languageCode' => 'eng-GB',
1892
                        )
1893
                    ),
1894
                ),
1895
            ),
1896
        );
1897
    }
1898
1899
    /**
1900
     * Test for the createContent() method.
@@ 1919-1935 (lines=17) @@
1916
        );
1917
    }
1918
1919
    public function providerForTestCreateContentThrowsContentValidationExceptionTranslation()
1920
    {
1921
        return array(
1922
            array(
1923
                'eng-GB',
1924
                array(
1925
                    new Field(
1926
                        array(
1927
                            'fieldDefIdentifier' => 'identifier',
1928
                            'value' => 'newValue',
1929
                            'languageCode' => 'eng-US',
1930
                        )
1931
                    ),
1932
                ),
1933
            ),
1934
        );
1935
    }
1936
1937
    /**
1938
     * Test for the createContent() method.
@@ 4692-4708 (lines=17) @@
4689
        $mockedService->updateContent($content->versionInfo, $contentUpdateStruct);
4690
    }
4691
4692
    public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition()
4693
    {
4694
        return array(
4695
            array(
4696
                'eng-GB',
4697
                array(
4698
                    new Field(
4699
                        array(
4700
                            'fieldDefIdentifier' => 'identifier',
4701
                            'value' => 'newValue',
4702
                            'languageCode' => 'eng-GB',
4703
                        )
4704
                    ),
4705
                ),
4706
            ),
4707
        );
4708
    }
4709
4710
    /**
4711
     * Test for the updateContent() method.
@@ 4730-4746 (lines=17) @@
4727
        );
4728
    }
4729
4730
    public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation()
4731
    {
4732
        return array(
4733
            array(
4734
                'eng-US',
4735
                array(
4736
                    new Field(
4737
                        array(
4738
                            'fieldDefIdentifier' => 'identifier',
4739
                            'value' => 'newValue',
4740
                            'languageCode' => 'eng-US',
4741
                        )
4742
                    ),
4743
                ),
4744
            ),
4745
        );
4746
    }
4747
4748
    /**
4749
     * Test for the updateContent() method.