| @@ 1739-1767 (lines=29) @@ | ||
| 1736 | ); |
|
| 1737 | } |
|
| 1738 | ||
| 1739 | public function providerForTestCreateContentWithInvalidLanguage() |
|
| 1740 | { |
|
| 1741 | return array( |
|
| 1742 | array( |
|
| 1743 | 'eng-GB', |
|
| 1744 | array( |
|
| 1745 | new Field( |
|
| 1746 | array( |
|
| 1747 | 'fieldDefIdentifier' => 'identifier', |
|
| 1748 | 'value' => 'newValue', |
|
| 1749 | 'languageCode' => 'Klingon', |
|
| 1750 | ) |
|
| 1751 | ), |
|
| 1752 | ), |
|
| 1753 | ), |
|
| 1754 | array( |
|
| 1755 | 'Klingon', |
|
| 1756 | array( |
|
| 1757 | new Field( |
|
| 1758 | array( |
|
| 1759 | 'fieldDefIdentifier' => 'identifier', |
|
| 1760 | 'value' => 'newValue', |
|
| 1761 | 'languageCode' => 'eng-GB', |
|
| 1762 | ) |
|
| 1763 | ), |
|
| 1764 | ), |
|
| 1765 | ), |
|
| 1766 | ); |
|
| 1767 | } |
|
| 1768 | ||
| 1769 | /** |
|
| 1770 | * Test for the updateContent() method. |
|
| @@ 4516-4544 (lines=29) @@ | ||
| 4513 | ); |
|
| 4514 | } |
|
| 4515 | ||
| 4516 | public function providerForTestUpdateContentWithInvalidLanguage() |
|
| 4517 | { |
|
| 4518 | return array( |
|
| 4519 | array( |
|
| 4520 | 'eng-GB', |
|
| 4521 | array( |
|
| 4522 | new Field( |
|
| 4523 | array( |
|
| 4524 | 'fieldDefIdentifier' => 'identifier', |
|
| 4525 | 'value' => 'newValue', |
|
| 4526 | 'languageCode' => 'Klingon', |
|
| 4527 | ) |
|
| 4528 | ), |
|
| 4529 | ), |
|
| 4530 | ), |
|
| 4531 | array( |
|
| 4532 | 'Klingon', |
|
| 4533 | array( |
|
| 4534 | new Field( |
|
| 4535 | array( |
|
| 4536 | 'fieldDefIdentifier' => 'identifier', |
|
| 4537 | 'value' => 'newValue', |
|
| 4538 | 'languageCode' => 'eng-GB', |
|
| 4539 | ) |
|
| 4540 | ), |
|
| 4541 | ), |
|
| 4542 | ), |
|
| 4543 | ); |
|
| 4544 | } |
|
| 4545 | ||
| 4546 | /** |
|
| 4547 | * Test for the updateContent() method. |
|