| @@ 1759-1787 (lines=29) @@ | ||
| 1756 | ); |
|
| 1757 | } |
|
| 1758 | ||
| 1759 | public function providerForTestCreateContentWithInvalidLanguage() |
|
| 1760 | { |
|
| 1761 | return [ |
|
| 1762 | [ |
|
| 1763 | 'eng-GB', |
|
| 1764 | [ |
|
| 1765 | new Field( |
|
| 1766 | [ |
|
| 1767 | 'fieldDefIdentifier' => 'identifier', |
|
| 1768 | 'value' => 'newValue', |
|
| 1769 | 'languageCode' => 'Klingon', |
|
| 1770 | ] |
|
| 1771 | ), |
|
| 1772 | ], |
|
| 1773 | ], |
|
| 1774 | [ |
|
| 1775 | 'Klingon', |
|
| 1776 | [ |
|
| 1777 | new Field( |
|
| 1778 | [ |
|
| 1779 | 'fieldDefIdentifier' => 'identifier', |
|
| 1780 | 'value' => 'newValue', |
|
| 1781 | 'languageCode' => 'eng-GB', |
|
| 1782 | ] |
|
| 1783 | ), |
|
| 1784 | ], |
|
| 1785 | ], |
|
| 1786 | ]; |
|
| 1787 | } |
|
| 1788 | ||
| 1789 | /** |
|
| 1790 | * Test for the updateContent() method. |
|
| @@ 4557-4585 (lines=29) @@ | ||
| 4554 | ); |
|
| 4555 | } |
|
| 4556 | ||
| 4557 | public function providerForTestUpdateContentWithInvalidLanguage() |
|
| 4558 | { |
|
| 4559 | return [ |
|
| 4560 | [ |
|
| 4561 | 'eng-GB', |
|
| 4562 | [ |
|
| 4563 | new Field( |
|
| 4564 | [ |
|
| 4565 | 'fieldDefIdentifier' => 'identifier', |
|
| 4566 | 'value' => 'newValue', |
|
| 4567 | 'languageCode' => 'Klingon', |
|
| 4568 | ] |
|
| 4569 | ), |
|
| 4570 | ], |
|
| 4571 | ], |
|
| 4572 | [ |
|
| 4573 | 'Klingon', |
|
| 4574 | [ |
|
| 4575 | new Field( |
|
| 4576 | [ |
|
| 4577 | 'fieldDefIdentifier' => 'identifier', |
|
| 4578 | 'value' => 'newValue', |
|
| 4579 | 'languageCode' => 'eng-GB', |
|
| 4580 | ] |
|
| 4581 | ), |
|
| 4582 | ], |
|
| 4583 | ], |
|
| 4584 | ]; |
|
| 4585 | } |
|
| 4586 | ||
| 4587 | /** |
|
| 4588 | * Test for the updateContent() method. |
|