| @@ 1783-1811 (lines=29) @@ | ||
| 1780 | ); |
|
| 1781 | } |
|
| 1782 | ||
| 1783 | public function providerForTestCreateContentWithInvalidLanguage() |
|
| 1784 | { |
|
| 1785 | return [ |
|
| 1786 | [ |
|
| 1787 | 'eng-GB', |
|
| 1788 | [ |
|
| 1789 | new Field( |
|
| 1790 | [ |
|
| 1791 | 'fieldDefIdentifier' => 'identifier', |
|
| 1792 | 'value' => 'newValue', |
|
| 1793 | 'languageCode' => 'Klingon', |
|
| 1794 | ] |
|
| 1795 | ), |
|
| 1796 | ], |
|
| 1797 | ], |
|
| 1798 | [ |
|
| 1799 | 'Klingon', |
|
| 1800 | [ |
|
| 1801 | new Field( |
|
| 1802 | [ |
|
| 1803 | 'fieldDefIdentifier' => 'identifier', |
|
| 1804 | 'value' => 'newValue', |
|
| 1805 | 'languageCode' => 'eng-GB', |
|
| 1806 | ] |
|
| 1807 | ), |
|
| 1808 | ], |
|
| 1809 | ], |
|
| 1810 | ]; |
|
| 1811 | } |
|
| 1812 | ||
| 1813 | /** |
|
| 1814 | * Test for the updateContent() method. |
|
| @@ 4563-4591 (lines=29) @@ | ||
| 4560 | ); |
|
| 4561 | } |
|
| 4562 | ||
| 4563 | public function providerForTestUpdateContentWithInvalidLanguage() |
|
| 4564 | { |
|
| 4565 | return [ |
|
| 4566 | [ |
|
| 4567 | 'eng-GB', |
|
| 4568 | [ |
|
| 4569 | new Field( |
|
| 4570 | [ |
|
| 4571 | 'fieldDefIdentifier' => 'identifier', |
|
| 4572 | 'value' => 'newValue', |
|
| 4573 | 'languageCode' => 'Klingon', |
|
| 4574 | ] |
|
| 4575 | ), |
|
| 4576 | ], |
|
| 4577 | ], |
|
| 4578 | [ |
|
| 4579 | 'Klingon', |
|
| 4580 | [ |
|
| 4581 | new Field( |
|
| 4582 | [ |
|
| 4583 | 'fieldDefIdentifier' => 'identifier', |
|
| 4584 | 'value' => 'newValue', |
|
| 4585 | 'languageCode' => 'eng-GB', |
|
| 4586 | ] |
|
| 4587 | ), |
|
| 4588 | ], |
|
| 4589 | ], |
|
| 4590 | ]; |
|
| 4591 | } |
|
| 4592 | ||
| 4593 | /** |
|
| 4594 | * Test for the updateContent() method. |
|