| @@ 1958-1974 (lines=17) @@ | ||
| 1955 | $mockedService->createContent($contentCreateStruct, []); |
|
| 1956 | } |
|
| 1957 | ||
| 1958 | public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 1959 | { |
|
| 1960 | return [ |
|
| 1961 | [ |
|
| 1962 | 'eng-GB', |
|
| 1963 | [ |
|
| 1964 | new Field( |
|
| 1965 | [ |
|
| 1966 | 'fieldDefIdentifier' => 'identifier', |
|
| 1967 | 'value' => 'newValue', |
|
| 1968 | 'languageCode' => 'eng-GB', |
|
| 1969 | ] |
|
| 1970 | ), |
|
| 1971 | ], |
|
| 1972 | ], |
|
| 1973 | ]; |
|
| 1974 | } |
|
| 1975 | ||
| 1976 | /** |
|
| 1977 | * Test for the createContent() method. |
|
| @@ 1995-2011 (lines=17) @@ | ||
| 1992 | ); |
|
| 1993 | } |
|
| 1994 | ||
| 1995 | public function providerForTestCreateContentThrowsContentValidationExceptionTranslation() |
|
| 1996 | { |
|
| 1997 | return [ |
|
| 1998 | [ |
|
| 1999 | 'eng-GB', |
|
| 2000 | [ |
|
| 2001 | new Field( |
|
| 2002 | [ |
|
| 2003 | 'fieldDefIdentifier' => 'identifier', |
|
| 2004 | 'value' => 'newValue', |
|
| 2005 | 'languageCode' => 'eng-US', |
|
| 2006 | ] |
|
| 2007 | ), |
|
| 2008 | ], |
|
| 2009 | ], |
|
| 2010 | ]; |
|
| 2011 | } |
|
| 2012 | ||
| 2013 | /** |
|
| 2014 | * Test for the createContent() method. |
|
| @@ 4760-4776 (lines=17) @@ | ||
| 4757 | $mockedService->updateContent($content->versionInfo, $contentUpdateStruct); |
|
| 4758 | } |
|
| 4759 | ||
| 4760 | public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 4761 | { |
|
| 4762 | return [ |
|
| 4763 | [ |
|
| 4764 | 'eng-GB', |
|
| 4765 | [ |
|
| 4766 | new Field( |
|
| 4767 | [ |
|
| 4768 | 'fieldDefIdentifier' => 'identifier', |
|
| 4769 | 'value' => 'newValue', |
|
| 4770 | 'languageCode' => 'eng-GB', |
|
| 4771 | ] |
|
| 4772 | ), |
|
| 4773 | ], |
|
| 4774 | ], |
|
| 4775 | ]; |
|
| 4776 | } |
|
| 4777 | ||
| 4778 | /** |
|
| 4779 | * Test for the updateContent() method. |
|
| @@ 4797-4813 (lines=17) @@ | ||
| 4794 | ); |
|
| 4795 | } |
|
| 4796 | ||
| 4797 | public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation() |
|
| 4798 | { |
|
| 4799 | return [ |
|
| 4800 | [ |
|
| 4801 | 'eng-US', |
|
| 4802 | [ |
|
| 4803 | new Field( |
|
| 4804 | [ |
|
| 4805 | 'fieldDefIdentifier' => 'identifier', |
|
| 4806 | 'value' => 'newValue', |
|
| 4807 | 'languageCode' => 'eng-US', |
|
| 4808 | ] |
|
| 4809 | ), |
|
| 4810 | ], |
|
| 4811 | ], |
|
| 4812 | ]; |
|
| 4813 | } |
|
| 4814 | ||
| 4815 | /** |
|
| 4816 | * Test for the updateContent() method. |
|