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