| @@ 1944-1960 (lines=17) @@ | ||
| 1941 | $mockedService->createContent($contentCreateStruct, []); |
|
| 1942 | } |
|
| 1943 | ||
| 1944 | public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 1945 | { |
|
| 1946 | return [ |
|
| 1947 | [ |
|
| 1948 | 'eng-GB', |
|
| 1949 | [ |
|
| 1950 | new Field( |
|
| 1951 | [ |
|
| 1952 | 'fieldDefIdentifier' => 'identifier', |
|
| 1953 | 'value' => 'newValue', |
|
| 1954 | 'languageCode' => 'eng-GB', |
|
| 1955 | ] |
|
| 1956 | ), |
|
| 1957 | ], |
|
| 1958 | ], |
|
| 1959 | ]; |
|
| 1960 | } |
|
| 1961 | ||
| 1962 | /** |
|
| 1963 | * Test for the createContent() method. |
|
| @@ 1981-1997 (lines=17) @@ | ||
| 1978 | ); |
|
| 1979 | } |
|
| 1980 | ||
| 1981 | public function providerForTestCreateContentThrowsContentValidationExceptionTranslation() |
|
| 1982 | { |
|
| 1983 | return [ |
|
| 1984 | [ |
|
| 1985 | 'eng-GB', |
|
| 1986 | [ |
|
| 1987 | new Field( |
|
| 1988 | [ |
|
| 1989 | 'fieldDefIdentifier' => 'identifier', |
|
| 1990 | 'value' => 'newValue', |
|
| 1991 | 'languageCode' => 'eng-US', |
|
| 1992 | ] |
|
| 1993 | ), |
|
| 1994 | ], |
|
| 1995 | ], |
|
| 1996 | ]; |
|
| 1997 | } |
|
| 1998 | ||
| 1999 | /** |
|
| 2000 | * Test for the createContent() method. |
|
| @@ 4739-4755 (lines=17) @@ | ||
| 4736 | $mockedService->updateContent($content->versionInfo, $contentUpdateStruct); |
|
| 4737 | } |
|
| 4738 | ||
| 4739 | public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 4740 | { |
|
| 4741 | return [ |
|
| 4742 | [ |
|
| 4743 | 'eng-GB', |
|
| 4744 | [ |
|
| 4745 | new Field( |
|
| 4746 | [ |
|
| 4747 | 'fieldDefIdentifier' => 'identifier', |
|
| 4748 | 'value' => 'newValue', |
|
| 4749 | 'languageCode' => 'eng-GB', |
|
| 4750 | ] |
|
| 4751 | ), |
|
| 4752 | ], |
|
| 4753 | ], |
|
| 4754 | ]; |
|
| 4755 | } |
|
| 4756 | ||
| 4757 | /** |
|
| 4758 | * Test for the updateContent() method. |
|
| @@ 4776-4792 (lines=17) @@ | ||
| 4773 | ); |
|
| 4774 | } |
|
| 4775 | ||
| 4776 | public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation() |
|
| 4777 | { |
|
| 4778 | return [ |
|
| 4779 | [ |
|
| 4780 | 'eng-US', |
|
| 4781 | [ |
|
| 4782 | new Field( |
|
| 4783 | [ |
|
| 4784 | 'fieldDefIdentifier' => 'identifier', |
|
| 4785 | 'value' => 'newValue', |
|
| 4786 | 'languageCode' => 'eng-US', |
|
| 4787 | ] |
|
| 4788 | ), |
|
| 4789 | ], |
|
| 4790 | ], |
|
| 4791 | ]; |
|
| 4792 | } |
|
| 4793 | ||
| 4794 | /** |
|
| 4795 | * Test for the updateContent() method. |
|