| @@ 1914-1930 (lines=17) @@ | ||
| 1911 | $mockedService->createContent($contentCreateStruct, array()); |
|
| 1912 | } |
|
| 1913 | ||
| 1914 | public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 1915 | { |
|
| 1916 | return array( |
|
| 1917 | array( |
|
| 1918 | 'eng-GB', |
|
| 1919 | array( |
|
| 1920 | new Field( |
|
| 1921 | array( |
|
| 1922 | 'fieldDefIdentifier' => 'identifier', |
|
| 1923 | 'value' => 'newValue', |
|
| 1924 | 'languageCode' => 'eng-GB', |
|
| 1925 | ) |
|
| 1926 | ), |
|
| 1927 | ), |
|
| 1928 | ), |
|
| 1929 | ); |
|
| 1930 | } |
|
| 1931 | ||
| 1932 | /** |
|
| 1933 | * Test for the createContent() method. |
|
| @@ 1951-1967 (lines=17) @@ | ||
| 1948 | ); |
|
| 1949 | } |
|
| 1950 | ||
| 1951 | public function providerForTestCreateContentThrowsContentValidationExceptionTranslation() |
|
| 1952 | { |
|
| 1953 | return array( |
|
| 1954 | array( |
|
| 1955 | 'eng-GB', |
|
| 1956 | array( |
|
| 1957 | new Field( |
|
| 1958 | array( |
|
| 1959 | 'fieldDefIdentifier' => 'identifier', |
|
| 1960 | 'value' => 'newValue', |
|
| 1961 | 'languageCode' => 'eng-US', |
|
| 1962 | ) |
|
| 1963 | ), |
|
| 1964 | ), |
|
| 1965 | ), |
|
| 1966 | ); |
|
| 1967 | } |
|
| 1968 | ||
| 1969 | /** |
|
| 1970 | * Test for the createContent() method. |
|
| @@ 4709-4725 (lines=17) @@ | ||
| 4706 | $mockedService->updateContent($content->versionInfo, $contentUpdateStruct); |
|
| 4707 | } |
|
| 4708 | ||
| 4709 | public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 4710 | { |
|
| 4711 | return array( |
|
| 4712 | array( |
|
| 4713 | 'eng-GB', |
|
| 4714 | array( |
|
| 4715 | new Field( |
|
| 4716 | array( |
|
| 4717 | 'fieldDefIdentifier' => 'identifier', |
|
| 4718 | 'value' => 'newValue', |
|
| 4719 | 'languageCode' => 'eng-GB', |
|
| 4720 | ) |
|
| 4721 | ), |
|
| 4722 | ), |
|
| 4723 | ), |
|
| 4724 | ); |
|
| 4725 | } |
|
| 4726 | ||
| 4727 | /** |
|
| 4728 | * Test for the updateContent() method. |
|
| @@ 4746-4762 (lines=17) @@ | ||
| 4743 | ); |
|
| 4744 | } |
|
| 4745 | ||
| 4746 | public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation() |
|
| 4747 | { |
|
| 4748 | return array( |
|
| 4749 | array( |
|
| 4750 | 'eng-US', |
|
| 4751 | array( |
|
| 4752 | new Field( |
|
| 4753 | array( |
|
| 4754 | 'fieldDefIdentifier' => 'identifier', |
|
| 4755 | 'value' => 'newValue', |
|
| 4756 | 'languageCode' => 'eng-US', |
|
| 4757 | ) |
|
| 4758 | ), |
|
| 4759 | ), |
|
| 4760 | ), |
|
| 4761 | ); |
|
| 4762 | } |
|
| 4763 | ||
| 4764 | /** |
|
| 4765 | * Test for the updateContent() method. |
|