| @@ 1747-1775 (lines=29) @@ | ||
| 1744 | ); |
|
| 1745 | } |
|
| 1746 | ||
| 1747 | public function providerForTestCreateContentWithInvalidLanguage() |
|
| 1748 | { |
|
| 1749 | return [ |
|
| 1750 | [ |
|
| 1751 | 'eng-GB', |
|
| 1752 | [ |
|
| 1753 | new Field( |
|
| 1754 | [ |
|
| 1755 | 'fieldDefIdentifier' => 'identifier', |
|
| 1756 | 'value' => 'newValue', |
|
| 1757 | 'languageCode' => 'Klingon', |
|
| 1758 | ] |
|
| 1759 | ), |
|
| 1760 | ], |
|
| 1761 | ], |
|
| 1762 | [ |
|
| 1763 | 'Klingon', |
|
| 1764 | [ |
|
| 1765 | new Field( |
|
| 1766 | [ |
|
| 1767 | 'fieldDefIdentifier' => 'identifier', |
|
| 1768 | 'value' => 'newValue', |
|
| 1769 | 'languageCode' => 'eng-GB', |
|
| 1770 | ] |
|
| 1771 | ), |
|
| 1772 | ], |
|
| 1773 | ], |
|
| 1774 | ]; |
|
| 1775 | } |
|
| 1776 | ||
| 1777 | /** |
|
| 1778 | * Test for the updateContent() method. |
|
| @@ 4536-4564 (lines=29) @@ | ||
| 4533 | ); |
|
| 4534 | } |
|
| 4535 | ||
| 4536 | public function providerForTestUpdateContentWithInvalidLanguage() |
|
| 4537 | { |
|
| 4538 | return [ |
|
| 4539 | [ |
|
| 4540 | 'eng-GB', |
|
| 4541 | [ |
|
| 4542 | new Field( |
|
| 4543 | [ |
|
| 4544 | 'fieldDefIdentifier' => 'identifier', |
|
| 4545 | 'value' => 'newValue', |
|
| 4546 | 'languageCode' => 'Klingon', |
|
| 4547 | ] |
|
| 4548 | ), |
|
| 4549 | ], |
|
| 4550 | ], |
|
| 4551 | [ |
|
| 4552 | 'Klingon', |
|
| 4553 | [ |
|
| 4554 | new Field( |
|
| 4555 | [ |
|
| 4556 | 'fieldDefIdentifier' => 'identifier', |
|
| 4557 | 'value' => 'newValue', |
|
| 4558 | 'languageCode' => 'eng-GB', |
|
| 4559 | ] |
|
| 4560 | ), |
|
| 4561 | ], |
|
| 4562 | ], |
|
| 4563 | ]; |
|
| 4564 | } |
|
| 4565 | ||
| 4566 | /** |
|
| 4567 | * Test for the updateContent() method. |
|