| @@ 1750-1778 (lines=29) @@ | ||
| 1747 | ); |
|
| 1748 | } |
|
| 1749 | ||
| 1750 | public function providerForTestCreateContentWithInvalidLanguage() |
|
| 1751 | { |
|
| 1752 | return array( |
|
| 1753 | array( |
|
| 1754 | 'eng-GB', |
|
| 1755 | array( |
|
| 1756 | new Field( |
|
| 1757 | array( |
|
| 1758 | 'fieldDefIdentifier' => 'identifier', |
|
| 1759 | 'value' => 'newValue', |
|
| 1760 | 'languageCode' => 'Klingon', |
|
| 1761 | ) |
|
| 1762 | ), |
|
| 1763 | ), |
|
| 1764 | ), |
|
| 1765 | array( |
|
| 1766 | 'Klingon', |
|
| 1767 | array( |
|
| 1768 | new Field( |
|
| 1769 | array( |
|
| 1770 | 'fieldDefIdentifier' => 'identifier', |
|
| 1771 | 'value' => 'newValue', |
|
| 1772 | 'languageCode' => 'eng-GB', |
|
| 1773 | ) |
|
| 1774 | ), |
|
| 1775 | ), |
|
| 1776 | ), |
|
| 1777 | ); |
|
| 1778 | } |
|
| 1779 | ||
| 1780 | /** |
|
| 1781 | * Test for the updateContent() method. |
|
| @@ 4527-4555 (lines=29) @@ | ||
| 4524 | ); |
|
| 4525 | } |
|
| 4526 | ||
| 4527 | public function providerForTestUpdateContentWithInvalidLanguage() |
|
| 4528 | { |
|
| 4529 | return array( |
|
| 4530 | array( |
|
| 4531 | 'eng-GB', |
|
| 4532 | array( |
|
| 4533 | new Field( |
|
| 4534 | array( |
|
| 4535 | 'fieldDefIdentifier' => 'identifier', |
|
| 4536 | 'value' => 'newValue', |
|
| 4537 | 'languageCode' => 'Klingon', |
|
| 4538 | ) |
|
| 4539 | ), |
|
| 4540 | ), |
|
| 4541 | ), |
|
| 4542 | array( |
|
| 4543 | 'Klingon', |
|
| 4544 | array( |
|
| 4545 | new Field( |
|
| 4546 | array( |
|
| 4547 | 'fieldDefIdentifier' => 'identifier', |
|
| 4548 | 'value' => 'newValue', |
|
| 4549 | 'languageCode' => 'eng-GB', |
|
| 4550 | ) |
|
| 4551 | ), |
|
| 4552 | ), |
|
| 4553 | ), |
|
| 4554 | ); |
|
| 4555 | } |
|
| 4556 | ||
| 4557 | /** |
|
| 4558 | * Test for the updateContent() method. |
|