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