| @@ 1793-1821 (lines=29) @@ | ||
| 1790 | ); |
|
| 1791 | } |
|
| 1792 | ||
| 1793 | public function providerForTestCreateContentWithInvalidLanguage() |
|
| 1794 | { |
|
| 1795 | return [ |
|
| 1796 | [ |
|
| 1797 | 'eng-GB', |
|
| 1798 | [ |
|
| 1799 | new Field( |
|
| 1800 | [ |
|
| 1801 | 'fieldDefIdentifier' => 'identifier', |
|
| 1802 | 'value' => 'newValue', |
|
| 1803 | 'languageCode' => 'Klingon', |
|
| 1804 | ] |
|
| 1805 | ), |
|
| 1806 | ], |
|
| 1807 | ], |
|
| 1808 | [ |
|
| 1809 | 'Klingon', |
|
| 1810 | [ |
|
| 1811 | new Field( |
|
| 1812 | [ |
|
| 1813 | 'fieldDefIdentifier' => 'identifier', |
|
| 1814 | 'value' => 'newValue', |
|
| 1815 | 'languageCode' => 'eng-GB', |
|
| 1816 | ] |
|
| 1817 | ), |
|
| 1818 | ], |
|
| 1819 | ], |
|
| 1820 | ]; |
|
| 1821 | } |
|
| 1822 | ||
| 1823 | /** |
|
| 1824 | * Test for the updateContent() method. |
|
| @@ 4583-4611 (lines=29) @@ | ||
| 4580 | ); |
|
| 4581 | } |
|
| 4582 | ||
| 4583 | public function providerForTestUpdateContentWithInvalidLanguage() |
|
| 4584 | { |
|
| 4585 | return [ |
|
| 4586 | [ |
|
| 4587 | 'eng-GB', |
|
| 4588 | [ |
|
| 4589 | new Field( |
|
| 4590 | [ |
|
| 4591 | 'fieldDefIdentifier' => 'identifier', |
|
| 4592 | 'value' => 'newValue', |
|
| 4593 | 'languageCode' => 'Klingon', |
|
| 4594 | ] |
|
| 4595 | ), |
|
| 4596 | ], |
|
| 4597 | ], |
|
| 4598 | [ |
|
| 4599 | 'Klingon', |
|
| 4600 | [ |
|
| 4601 | new Field( |
|
| 4602 | [ |
|
| 4603 | 'fieldDefIdentifier' => 'identifier', |
|
| 4604 | 'value' => 'newValue', |
|
| 4605 | 'languageCode' => 'eng-GB', |
|
| 4606 | ] |
|
| 4607 | ), |
|
| 4608 | ], |
|
| 4609 | ], |
|
| 4610 | ]; |
|
| 4611 | } |
|
| 4612 | ||
| 4613 | /** |
|
| 4614 | * Test for the updateContent() method. |
|