| @@ 1705-1733 (lines=29) @@ | ||
| 1702 | ); |
|
| 1703 | } |
|
| 1704 | ||
| 1705 | public function providerForTestCreateContentWithInvalidLanguage() |
|
| 1706 | { |
|
| 1707 | return array( |
|
| 1708 | array( |
|
| 1709 | 'eng-GB', |
|
| 1710 | array( |
|
| 1711 | new Field( |
|
| 1712 | array( |
|
| 1713 | 'fieldDefIdentifier' => 'identifier', |
|
| 1714 | 'value' => 'newValue', |
|
| 1715 | 'languageCode' => 'Klingon', |
|
| 1716 | ) |
|
| 1717 | ), |
|
| 1718 | ), |
|
| 1719 | ), |
|
| 1720 | array( |
|
| 1721 | 'Klingon', |
|
| 1722 | array( |
|
| 1723 | new Field( |
|
| 1724 | array( |
|
| 1725 | 'fieldDefIdentifier' => 'identifier', |
|
| 1726 | 'value' => 'newValue', |
|
| 1727 | 'languageCode' => 'eng-GB', |
|
| 1728 | ) |
|
| 1729 | ), |
|
| 1730 | ), |
|
| 1731 | ), |
|
| 1732 | ); |
|
| 1733 | } |
|
| 1734 | ||
| 1735 | /** |
|
| 1736 | * Test for the updateContent() method. |
|
| @@ 4494-4522 (lines=29) @@ | ||
| 4491 | ); |
|
| 4492 | } |
|
| 4493 | ||
| 4494 | public function providerForTestUpdateContentWithInvalidLanguage() |
|
| 4495 | { |
|
| 4496 | return array( |
|
| 4497 | array( |
|
| 4498 | 'eng-GB', |
|
| 4499 | array( |
|
| 4500 | new Field( |
|
| 4501 | array( |
|
| 4502 | 'fieldDefIdentifier' => 'identifier', |
|
| 4503 | 'value' => 'newValue', |
|
| 4504 | 'languageCode' => 'Klingon', |
|
| 4505 | ) |
|
| 4506 | ), |
|
| 4507 | ), |
|
| 4508 | ), |
|
| 4509 | array( |
|
| 4510 | 'Klingon', |
|
| 4511 | array( |
|
| 4512 | new Field( |
|
| 4513 | array( |
|
| 4514 | 'fieldDefIdentifier' => 'identifier', |
|
| 4515 | 'value' => 'newValue', |
|
| 4516 | 'languageCode' => 'eng-GB', |
|
| 4517 | ) |
|
| 4518 | ), |
|
| 4519 | ), |
|
| 4520 | ), |
|
| 4521 | ); |
|
| 4522 | } |
|
| 4523 | ||
| 4524 | /** |
|
| 4525 | * Test for the updateContent() method. |
|