Code Duplication    Length = 29-29 lines in 2 locations

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

@@ 1768-1796 (lines=29) @@
1765
        );
1766
    }
1767
1768
    public function providerForTestCreateContentWithInvalidLanguage()
1769
    {
1770
        return [
1771
            [
1772
                'eng-GB',
1773
                [
1774
                    new Field(
1775
                        [
1776
                            'fieldDefIdentifier' => 'identifier',
1777
                            'value' => 'newValue',
1778
                            'languageCode' => 'Klingon',
1779
                        ]
1780
                    ),
1781
                ],
1782
            ],
1783
            [
1784
                'Klingon',
1785
                [
1786
                    new Field(
1787
                        [
1788
                            'fieldDefIdentifier' => 'identifier',
1789
                            'value' => 'newValue',
1790
                            'languageCode' => 'eng-GB',
1791
                        ]
1792
                    ),
1793
                ],
1794
            ],
1795
        ];
1796
    }
1797
1798
    /**
1799
     * Test for the updateContent() method.
@@ 4567-4595 (lines=29) @@
4564
        );
4565
    }
4566
4567
    public function providerForTestUpdateContentWithInvalidLanguage()
4568
    {
4569
        return [
4570
            [
4571
                'eng-GB',
4572
                [
4573
                    new Field(
4574
                        [
4575
                            'fieldDefIdentifier' => 'identifier',
4576
                            'value' => 'newValue',
4577
                            'languageCode' => 'Klingon',
4578
                        ]
4579
                    ),
4580
                ],
4581
            ],
4582
            [
4583
                'Klingon',
4584
                [
4585
                    new Field(
4586
                        [
4587
                            'fieldDefIdentifier' => 'identifier',
4588
                            'value' => 'newValue',
4589
                            'languageCode' => 'eng-GB',
4590
                        ]
4591
                    ),
4592
                ],
4593
            ],
4594
        ];
4595
    }
4596
4597
    /**
4598
     * Test for the updateContent() method.