| @@ 2135-2153 (lines=19) @@ | ||
| 2132 | return $contentCreateStruct; |
|
| 2133 | } |
|
| 2134 | ||
| 2135 | public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField() |
|
| 2136 | { |
|
| 2137 | return array( |
|
| 2138 | array( |
|
| 2139 | 'eng-US', |
|
| 2140 | array( |
|
| 2141 | new Field( |
|
| 2142 | array( |
|
| 2143 | 'fieldDefIdentifier' => 'identifier', |
|
| 2144 | 'value' => self::EMPTY_FIELD_VALUE, |
|
| 2145 | 'languageCode' => null, |
|
| 2146 | ) |
|
| 2147 | ), |
|
| 2148 | ), |
|
| 2149 | 'identifier', |
|
| 2150 | 'eng-US', |
|
| 2151 | ), |
|
| 2152 | ); |
|
| 2153 | } |
|
| 2154 | ||
| 2155 | /** |
|
| 2156 | * Test for the createContent() method. |
|
| @@ 4928-4946 (lines=19) @@ | ||
| 4925 | return array($content->versionInfo, $contentUpdateStruct); |
|
| 4926 | } |
|
| 4927 | ||
| 4928 | public function providerForTestUpdateContentRequiredField() |
|
| 4929 | { |
|
| 4930 | return array( |
|
| 4931 | array( |
|
| 4932 | 'eng-US', |
|
| 4933 | array( |
|
| 4934 | new Field( |
|
| 4935 | array( |
|
| 4936 | 'fieldDefIdentifier' => 'identifier', |
|
| 4937 | 'value' => self::EMPTY_FIELD_VALUE, |
|
| 4938 | 'languageCode' => null, |
|
| 4939 | ) |
|
| 4940 | ), |
|
| 4941 | ), |
|
| 4942 | 'identifier', |
|
| 4943 | 'eng-US', |
|
| 4944 | ), |
|
| 4945 | ); |
|
| 4946 | } |
|
| 4947 | ||
| 4948 | /** |
|
| 4949 | * Test for the updateContent() method. |
|