Code Duplication    Length = 29-29 lines in 2 locations

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

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