Code Duplication    Length = 29-29 lines in 2 locations

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

@@ 1737-1765 (lines=29) @@
1734
        );
1735
    }
1736
1737
    public function providerForTestCreateContentWithInvalidLanguage()
1738
    {
1739
        return array(
1740
            array(
1741
                'eng-GB',
1742
                array(
1743
                    new Field(
1744
                        array(
1745
                            'fieldDefIdentifier' => 'identifier',
1746
                            'value' => 'newValue',
1747
                            'languageCode' => 'Klingon',
1748
                        )
1749
                    ),
1750
                ),
1751
            ),
1752
            array(
1753
                'Klingon',
1754
                array(
1755
                    new Field(
1756
                        array(
1757
                            'fieldDefIdentifier' => 'identifier',
1758
                            'value' => 'newValue',
1759
                            'languageCode' => 'eng-GB',
1760
                        )
1761
                    ),
1762
                ),
1763
            ),
1764
        );
1765
    }
1766
1767
    /**
1768
     * Test for the updateContent() method.
@@ 4514-4542 (lines=29) @@
4511
        );
4512
    }
4513
4514
    public function providerForTestUpdateContentWithInvalidLanguage()
4515
    {
4516
        return array(
4517
            array(
4518
                'eng-GB',
4519
                array(
4520
                    new Field(
4521
                        array(
4522
                            'fieldDefIdentifier' => 'identifier',
4523
                            'value' => 'newValue',
4524
                            'languageCode' => 'Klingon',
4525
                        )
4526
                    ),
4527
                ),
4528
            ),
4529
            array(
4530
                'Klingon',
4531
                array(
4532
                    new Field(
4533
                        array(
4534
                            'fieldDefIdentifier' => 'identifier',
4535
                            'value' => 'newValue',
4536
                            'languageCode' => 'eng-GB',
4537
                        )
4538
                    ),
4539
                ),
4540
            ),
4541
        );
4542
    }
4543
4544
    /**
4545
     * Test for the updateContent() method.