| @@ 1916-1932 (lines=17) @@ | ||
| 1913 | $mockedService->createContent($contentCreateStruct, []); |
|
| 1914 | } |
|
| 1915 | ||
| 1916 | public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 1917 | { |
|
| 1918 | return [ |
|
| 1919 | [ |
|
| 1920 | 'eng-GB', |
|
| 1921 | [ |
|
| 1922 | new Field( |
|
| 1923 | [ |
|
| 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 [ |
|
| 1956 | [ |
|
| 1957 | 'eng-GB', |
|
| 1958 | [ |
|
| 1959 | new Field( |
|
| 1960 | [ |
|
| 1961 | 'fieldDefIdentifier' => 'identifier', |
|
| 1962 | 'value' => 'newValue', |
|
| 1963 | 'languageCode' => 'eng-US', |
|
| 1964 | ] |
|
| 1965 | ), |
|
| 1966 | ], |
|
| 1967 | ], |
|
| 1968 | ]; |
|
| 1969 | } |
|
| 1970 | ||
| 1971 | /** |
|
| 1972 | * Test for the createContent() method. |
|
| @@ 4718-4734 (lines=17) @@ | ||
| 4715 | $mockedService->updateContent($content->versionInfo, $contentUpdateStruct); |
|
| 4716 | } |
|
| 4717 | ||
| 4718 | public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 4719 | { |
|
| 4720 | return [ |
|
| 4721 | [ |
|
| 4722 | 'eng-GB', |
|
| 4723 | [ |
|
| 4724 | new Field( |
|
| 4725 | [ |
|
| 4726 | 'fieldDefIdentifier' => 'identifier', |
|
| 4727 | 'value' => 'newValue', |
|
| 4728 | 'languageCode' => 'eng-GB', |
|
| 4729 | ] |
|
| 4730 | ), |
|
| 4731 | ], |
|
| 4732 | ], |
|
| 4733 | ]; |
|
| 4734 | } |
|
| 4735 | ||
| 4736 | /** |
|
| 4737 | * Test for the updateContent() method. |
|
| @@ 4755-4771 (lines=17) @@ | ||
| 4752 | ); |
|
| 4753 | } |
|
| 4754 | ||
| 4755 | public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation() |
|
| 4756 | { |
|
| 4757 | return [ |
|
| 4758 | [ |
|
| 4759 | 'eng-US', |
|
| 4760 | [ |
|
| 4761 | new Field( |
|
| 4762 | [ |
|
| 4763 | 'fieldDefIdentifier' => 'identifier', |
|
| 4764 | 'value' => 'newValue', |
|
| 4765 | 'languageCode' => 'eng-US', |
|
| 4766 | ] |
|
| 4767 | ), |
|
| 4768 | ], |
|
| 4769 | ], |
|
| 4770 | ]; |
|
| 4771 | } |
|
| 4772 | ||
| 4773 | /** |
|
| 4774 | * Test for the updateContent() method. |
|