| @@ 4525-4553 (lines=29) @@ | ||
| 4522 | ); |
|
| 4523 | } |
|
| 4524 | ||
| 4525 | public function providerForTestUpdateContentWithInvalidLanguage() |
|
| 4526 | { |
|
| 4527 | return [ |
|
| 4528 | [ |
|
| 4529 | 'eng-GB', |
|
| 4530 | [ |
|
| 4531 | new Field( |
|
| 4532 | [ |
|
| 4533 | 'fieldDefIdentifier' => 'identifier', |
|
| 4534 | 'value' => 'newValue', |
|
| 4535 | 'languageCode' => 'Klingon', |
|
| 4536 | ] |
|
| 4537 | ), |
|
| 4538 | ], |
|
| 4539 | ], |
|
| 4540 | [ |
|
| 4541 | 'Klingon', |
|
| 4542 | [ |
|
| 4543 | new Field( |
|
| 4544 | [ |
|
| 4545 | 'fieldDefIdentifier' => 'identifier', |
|
| 4546 | 'value' => 'newValue', |
|
| 4547 | 'languageCode' => 'eng-GB', |
|
| 4548 | ] |
|
| 4549 | ), |
|
| 4550 | ], |
|
| 4551 | ], |
|
| 4552 | ]; |
|
| 4553 | } |
|
| 4554 | ||
| 4555 | /** |
|
| 4556 | * Test for the updateContent() method. |
|
| @@ 1726-1754 (lines=29) @@ | ||
| 1723 | ); |
|
| 1724 | } |
|
| 1725 | ||
| 1726 | public function providerForTestCreateContentWithInvalidLanguage() |
|
| 1727 | { |
|
| 1728 | return [ |
|
| 1729 | [ |
|
| 1730 | 'eng-GB', |
|
| 1731 | [ |
|
| 1732 | new Field( |
|
| 1733 | [ |
|
| 1734 | 'fieldDefIdentifier' => 'identifier', |
|
| 1735 | 'value' => 'newValue', |
|
| 1736 | 'languageCode' => 'Klingon', |
|
| 1737 | ] |
|
| 1738 | ), |
|
| 1739 | ], |
|
| 1740 | ], |
|
| 1741 | [ |
|
| 1742 | 'Klingon', |
|
| 1743 | [ |
|
| 1744 | new Field( |
|
| 1745 | [ |
|
| 1746 | 'fieldDefIdentifier' => 'identifier', |
|
| 1747 | 'value' => 'newValue', |
|
| 1748 | 'languageCode' => 'eng-GB', |
|
| 1749 | ] |
|
| 1750 | ), |
|
| 1751 | ], |
|
| 1752 | ], |
|
| 1753 | ]; |
|
| 1754 | } |
|
| 1755 | ||
| 1756 | /** |
|
| 1757 | * Test for the updateContent() method. |
|