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