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.
@@ 4576-4604 (lines=29) @@
4573
        );
4574
    }
4575
4576
    public function providerForTestUpdateContentWithInvalidLanguage()
4577
    {
4578
        return [
4579
            [
4580
                'eng-GB',
4581
                [
4582
                    new Field(
4583
                        [
4584
                            'fieldDefIdentifier' => 'identifier',
4585
                            'value' => 'newValue',
4586
                            'languageCode' => 'Klingon',
4587
                        ]
4588
                    ),
4589
                ],
4590
            ],
4591
            [
4592
                'Klingon',
4593
                [
4594
                    new Field(
4595
                        [
4596
                            'fieldDefIdentifier' => 'identifier',
4597
                            'value' => 'newValue',
4598
                            'languageCode' => 'eng-GB',
4599
                        ]
4600
                    ),
4601
                ],
4602
            ],
4603
        ];
4604
    }
4605
4606
    /**
4607
     * Test for the updateContent() method.