| @@ 2126-2144 (lines=19) @@ | ||
| 2123 | return $contentCreateStruct; |
|
| 2124 | } |
|
| 2125 | ||
| 2126 | public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField() |
|
| 2127 | { |
|
| 2128 | return array( |
|
| 2129 | array( |
|
| 2130 | 'eng-US', |
|
| 2131 | array( |
|
| 2132 | new Field( |
|
| 2133 | array( |
|
| 2134 | 'fieldDefIdentifier' => 'identifier', |
|
| 2135 | 'value' => self::EMPTY_FIELD_VALUE, |
|
| 2136 | 'languageCode' => null, |
|
| 2137 | ) |
|
| 2138 | ), |
|
| 2139 | ), |
|
| 2140 | 'identifier', |
|
| 2141 | 'eng-US', |
|
| 2142 | ), |
|
| 2143 | ); |
|
| 2144 | } |
|
| 2145 | ||
| 2146 | /** |
|
| 2147 | * Test for the createContent() method. |
|
| @@ 4919-4937 (lines=19) @@ | ||
| 4916 | return array($content->versionInfo, $contentUpdateStruct); |
|
| 4917 | } |
|
| 4918 | ||
| 4919 | public function providerForTestUpdateContentThrowsContentValidationExceptionRequiredField() |
|
| 4920 | { |
|
| 4921 | return array( |
|
| 4922 | array( |
|
| 4923 | 'eng-US', |
|
| 4924 | array( |
|
| 4925 | new Field( |
|
| 4926 | array( |
|
| 4927 | 'fieldDefIdentifier' => 'identifier', |
|
| 4928 | 'value' => self::EMPTY_FIELD_VALUE, |
|
| 4929 | 'languageCode' => null, |
|
| 4930 | ) |
|
| 4931 | ), |
|
| 4932 | ), |
|
| 4933 | 'identifier', |
|
| 4934 | 'eng-US', |
|
| 4935 | ), |
|
| 4936 | ); |
|
| 4937 | } |
|
| 4938 | ||
| 4939 | /** |
|
| 4940 | * Test for the updateContent() method. |
|