Code Duplication    Length = 29-29 lines in 2 locations

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

@@ 1771-1799 (lines=29) @@
1768
        );
1769
    }
1770
1771
    public function providerForTestCreateContentWithInvalidLanguage()
1772
    {
1773
        return [
1774
            [
1775
                'eng-GB',
1776
                [
1777
                    new Field(
1778
                        [
1779
                            'fieldDefIdentifier' => 'identifier',
1780
                            'value' => 'newValue',
1781
                            'languageCode' => 'Klingon',
1782
                        ]
1783
                    ),
1784
                ],
1785
            ],
1786
            [
1787
                'Klingon',
1788
                [
1789
                    new Field(
1790
                        [
1791
                            'fieldDefIdentifier' => 'identifier',
1792
                            'value' => 'newValue',
1793
                            'languageCode' => 'eng-GB',
1794
                        ]
1795
                    ),
1796
                ],
1797
            ],
1798
        ];
1799
    }
1800
1801
    /**
1802
     * Test for the updateContent() method.
@@ 4548-4576 (lines=29) @@
4545
        );
4546
    }
4547
4548
    public function providerForTestUpdateContentWithInvalidLanguage()
4549
    {
4550
        return [
4551
            [
4552
                'eng-GB',
4553
                [
4554
                    new Field(
4555
                        [
4556
                            'fieldDefIdentifier' => 'identifier',
4557
                            'value' => 'newValue',
4558
                            'languageCode' => 'Klingon',
4559
                        ]
4560
                    ),
4561
                ],
4562
            ],
4563
            [
4564
                'Klingon',
4565
                [
4566
                    new Field(
4567
                        [
4568
                            'fieldDefIdentifier' => 'identifier',
4569
                            'value' => 'newValue',
4570
                            'languageCode' => 'eng-GB',
4571
                        ]
4572
                    ),
4573
                ],
4574
            ],
4575
        ];
4576
    }
4577
4578
    /**
4579
     * Test for the updateContent() method.