| @@ 1939-1955 (lines=17) @@ | ||
| 1936 | $mockedService->createContent($contentCreateStruct, []); |
|
| 1937 | } |
|
| 1938 | ||
| 1939 | public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 1940 | { |
|
| 1941 | return [ |
|
| 1942 | [ |
|
| 1943 | 'eng-GB', |
|
| 1944 | [ |
|
| 1945 | new Field( |
|
| 1946 | [ |
|
| 1947 | 'fieldDefIdentifier' => 'identifier', |
|
| 1948 | 'value' => 'newValue', |
|
| 1949 | 'languageCode' => 'eng-GB', |
|
| 1950 | ] |
|
| 1951 | ), |
|
| 1952 | ], |
|
| 1953 | ], |
|
| 1954 | ]; |
|
| 1955 | } |
|
| 1956 | ||
| 1957 | /** |
|
| 1958 | * Test for the createContent() method. |
|
| @@ 1977-1993 (lines=17) @@ | ||
| 1974 | ); |
|
| 1975 | } |
|
| 1976 | ||
| 1977 | public function providerForTestCreateContentThrowsContentValidationExceptionTranslation() |
|
| 1978 | { |
|
| 1979 | return [ |
|
| 1980 | [ |
|
| 1981 | 'eng-GB', |
|
| 1982 | [ |
|
| 1983 | new Field( |
|
| 1984 | [ |
|
| 1985 | 'fieldDefIdentifier' => 'identifier', |
|
| 1986 | 'value' => 'newValue', |
|
| 1987 | 'languageCode' => 'eng-US', |
|
| 1988 | ] |
|
| 1989 | ), |
|
| 1990 | ], |
|
| 1991 | ], |
|
| 1992 | ]; |
|
| 1993 | } |
|
| 1994 | ||
| 1995 | /** |
|
| 1996 | * Test for the createContent() method. |
|
| @@ 4754-4770 (lines=17) @@ | ||
| 4751 | $mockedService->updateContent($content->versionInfo, $contentUpdateStruct); |
|
| 4752 | } |
|
| 4753 | ||
| 4754 | public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 4755 | { |
|
| 4756 | return [ |
|
| 4757 | [ |
|
| 4758 | 'eng-GB', |
|
| 4759 | [ |
|
| 4760 | new Field( |
|
| 4761 | [ |
|
| 4762 | 'fieldDefIdentifier' => 'identifier', |
|
| 4763 | 'value' => 'newValue', |
|
| 4764 | 'languageCode' => 'eng-GB', |
|
| 4765 | ] |
|
| 4766 | ), |
|
| 4767 | ], |
|
| 4768 | ], |
|
| 4769 | ]; |
|
| 4770 | } |
|
| 4771 | ||
| 4772 | /** |
|
| 4773 | * Test for the updateContent() method. |
|
| @@ 4792-4808 (lines=17) @@ | ||
| 4789 | ); |
|
| 4790 | } |
|
| 4791 | ||
| 4792 | public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation() |
|
| 4793 | { |
|
| 4794 | return [ |
|
| 4795 | [ |
|
| 4796 | 'eng-US', |
|
| 4797 | [ |
|
| 4798 | new Field( |
|
| 4799 | [ |
|
| 4800 | 'fieldDefIdentifier' => 'identifier', |
|
| 4801 | 'value' => 'newValue', |
|
| 4802 | 'languageCode' => 'eng-US', |
|
| 4803 | ] |
|
| 4804 | ), |
|
| 4805 | ], |
|
| 4806 | ], |
|
| 4807 | ]; |
|
| 4808 | } |
|
| 4809 | ||
| 4810 | /** |
|
| 4811 | * Test for the updateContent() method. |
|