| @@ 2141-2159 (lines=19) @@ | ||
| 2138 | return $contentCreateStruct; |
|
| 2139 | } |
|
| 2140 | ||
| 2141 | public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField() |
|
| 2142 | { |
|
| 2143 | return array( |
|
| 2144 | array( |
|
| 2145 | 'eng-US', |
|
| 2146 | array( |
|
| 2147 | new Field( |
|
| 2148 | array( |
|
| 2149 | 'fieldDefIdentifier' => 'identifier', |
|
| 2150 | 'value' => self::EMPTY_FIELD_VALUE, |
|
| 2151 | 'languageCode' => null, |
|
| 2152 | ) |
|
| 2153 | ), |
|
| 2154 | ), |
|
| 2155 | 'identifier', |
|
| 2156 | 'eng-US', |
|
| 2157 | ), |
|
| 2158 | ); |
|
| 2159 | } |
|
| 2160 | ||
| 2161 | /** |
|
| 2162 | * Test for the createContent() method. |
|
| @@ 4952-4970 (lines=19) @@ | ||
| 4949 | return array($content->versionInfo, $contentUpdateStruct); |
|
| 4950 | } |
|
| 4951 | ||
| 4952 | public function providerForTestUpdateContentRequiredField() |
|
| 4953 | { |
|
| 4954 | return array( |
|
| 4955 | array( |
|
| 4956 | 'eng-US', |
|
| 4957 | array( |
|
| 4958 | new Field( |
|
| 4959 | array( |
|
| 4960 | 'fieldDefIdentifier' => 'identifier', |
|
| 4961 | 'value' => self::EMPTY_FIELD_VALUE, |
|
| 4962 | 'languageCode' => null, |
|
| 4963 | ) |
|
| 4964 | ), |
|
| 4965 | ), |
|
| 4966 | 'identifier', |
|
| 4967 | 'eng-US', |
|
| 4968 | ), |
|
| 4969 | ); |
|
| 4970 | } |
|
| 4971 | ||
| 4972 | /** |
|
| 4973 | * Test for the updateContent() method. |
|