Code Duplication    Length = 29-29 lines in 2 locations

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

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