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