| @@ 1911-1927 (lines=17) @@ | ||
| 1908 | $mockedService->createContent($contentCreateStruct, array()); |
|
| 1909 | } |
|
| 1910 | ||
| 1911 | public function providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 1912 | { |
|
| 1913 | return array( |
|
| 1914 | array( |
|
| 1915 | 'eng-GB', |
|
| 1916 | array( |
|
| 1917 | new Field( |
|
| 1918 | array( |
|
| 1919 | 'fieldDefIdentifier' => 'identifier', |
|
| 1920 | 'value' => 'newValue', |
|
| 1921 | 'languageCode' => 'eng-GB', |
|
| 1922 | ) |
|
| 1923 | ), |
|
| 1924 | ), |
|
| 1925 | ), |
|
| 1926 | ); |
|
| 1927 | } |
|
| 1928 | ||
| 1929 | /** |
|
| 1930 | * Test for the createContent() method. |
|
| @@ 1948-1964 (lines=17) @@ | ||
| 1945 | ); |
|
| 1946 | } |
|
| 1947 | ||
| 1948 | public function providerForTestCreateContentThrowsContentValidationExceptionTranslation() |
|
| 1949 | { |
|
| 1950 | return array( |
|
| 1951 | array( |
|
| 1952 | 'eng-GB', |
|
| 1953 | array( |
|
| 1954 | new Field( |
|
| 1955 | array( |
|
| 1956 | 'fieldDefIdentifier' => 'identifier', |
|
| 1957 | 'value' => 'newValue', |
|
| 1958 | 'languageCode' => 'eng-US', |
|
| 1959 | ) |
|
| 1960 | ), |
|
| 1961 | ), |
|
| 1962 | ), |
|
| 1963 | ); |
|
| 1964 | } |
|
| 1965 | ||
| 1966 | /** |
|
| 1967 | * Test for the createContent() method. |
|
| @@ 4706-4722 (lines=17) @@ | ||
| 4703 | $mockedService->updateContent($content->versionInfo, $contentUpdateStruct); |
|
| 4704 | } |
|
| 4705 | ||
| 4706 | public function providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition() |
|
| 4707 | { |
|
| 4708 | return array( |
|
| 4709 | array( |
|
| 4710 | 'eng-GB', |
|
| 4711 | array( |
|
| 4712 | new Field( |
|
| 4713 | array( |
|
| 4714 | 'fieldDefIdentifier' => 'identifier', |
|
| 4715 | 'value' => 'newValue', |
|
| 4716 | 'languageCode' => 'eng-GB', |
|
| 4717 | ) |
|
| 4718 | ), |
|
| 4719 | ), |
|
| 4720 | ), |
|
| 4721 | ); |
|
| 4722 | } |
|
| 4723 | ||
| 4724 | /** |
|
| 4725 | * Test for the updateContent() method. |
|
| @@ 4743-4759 (lines=17) @@ | ||
| 4740 | ); |
|
| 4741 | } |
|
| 4742 | ||
| 4743 | public function providerForTestUpdateContentThrowsContentValidationExceptionTranslation() |
|
| 4744 | { |
|
| 4745 | return array( |
|
| 4746 | array( |
|
| 4747 | 'eng-US', |
|
| 4748 | array( |
|
| 4749 | new Field( |
|
| 4750 | array( |
|
| 4751 | 'fieldDefIdentifier' => 'identifier', |
|
| 4752 | 'value' => 'newValue', |
|
| 4753 | 'languageCode' => 'eng-US', |
|
| 4754 | ) |
|
| 4755 | ), |
|
| 4756 | ), |
|
| 4757 | ), |
|
| 4758 | ); |
|
| 4759 | } |
|
| 4760 | ||
| 4761 | /** |
|
| 4762 | * Test for the updateContent() method. |
|