Code Duplication    Length = 29-29 lines in 2 locations

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

@@ 1753-1781 (lines=29) @@
1750
        );
1751
    }
1752
1753
    public function providerForTestCreateContentWithInvalidLanguage()
1754
    {
1755
        return array(
1756
            array(
1757
                'eng-GB',
1758
                array(
1759
                    new Field(
1760
                        array(
1761
                            'fieldDefIdentifier' => 'identifier',
1762
                            'value' => 'newValue',
1763
                            'languageCode' => 'Klingon',
1764
                        )
1765
                    ),
1766
                ),
1767
            ),
1768
            array(
1769
                'Klingon',
1770
                array(
1771
                    new Field(
1772
                        array(
1773
                            'fieldDefIdentifier' => 'identifier',
1774
                            'value' => 'newValue',
1775
                            'languageCode' => 'eng-GB',
1776
                        )
1777
                    ),
1778
                ),
1779
            ),
1780
        );
1781
    }
1782
1783
    /**
1784
     * Test for the updateContent() method.
@@ 4542-4570 (lines=29) @@
4539
        );
4540
    }
4541
4542
    public function providerForTestUpdateContentWithInvalidLanguage()
4543
    {
4544
        return array(
4545
            array(
4546
                'eng-GB',
4547
                array(
4548
                    new Field(
4549
                        array(
4550
                            'fieldDefIdentifier' => 'identifier',
4551
                            'value' => 'newValue',
4552
                            'languageCode' => 'Klingon',
4553
                        )
4554
                    ),
4555
                ),
4556
            ),
4557
            array(
4558
                'Klingon',
4559
                array(
4560
                    new Field(
4561
                        array(
4562
                            'fieldDefIdentifier' => 'identifier',
4563
                            'value' => 'newValue',
4564
                            'languageCode' => 'eng-GB',
4565
                        )
4566
                    ),
4567
                ),
4568
            ),
4569
        );
4570
    }
4571
4572
    /**
4573
     * Test for the updateContent() method.