| @@ 2121-2139 (lines=19) @@ | ||
| 2118 | return $contentCreateStruct; |
|
| 2119 | } |
|
| 2120 | ||
| 2121 | public function providerForTestCreateContentThrowsContentValidationExceptionRequiredField() |
|
| 2122 | { |
|
| 2123 | return array( |
|
| 2124 | array( |
|
| 2125 | 'eng-US', |
|
| 2126 | array( |
|
| 2127 | new Field( |
|
| 2128 | array( |
|
| 2129 | 'fieldDefIdentifier' => 'identifier', |
|
| 2130 | 'value' => self::EMPTY_FIELD_VALUE, |
|
| 2131 | 'languageCode' => null, |
|
| 2132 | ) |
|
| 2133 | ), |
|
| 2134 | ), |
|
| 2135 | 'identifier', |
|
| 2136 | 'eng-US', |
|
| 2137 | ), |
|
| 2138 | ); |
|
| 2139 | } |
|
| 2140 | ||
| 2141 | /** |
|
| 2142 | * Test for the createContent() method. |
|
| @@ 4914-4932 (lines=19) @@ | ||
| 4911 | return array($content->versionInfo, $contentUpdateStruct); |
|
| 4912 | } |
|
| 4913 | ||
| 4914 | public function providerForTestUpdateContentRequiredField() |
|
| 4915 | { |
|
| 4916 | return array( |
|
| 4917 | array( |
|
| 4918 | 'eng-US', |
|
| 4919 | array( |
|
| 4920 | new Field( |
|
| 4921 | array( |
|
| 4922 | 'fieldDefIdentifier' => 'identifier', |
|
| 4923 | 'value' => self::EMPTY_FIELD_VALUE, |
|
| 4924 | 'languageCode' => null, |
|
| 4925 | ) |
|
| 4926 | ), |
|
| 4927 | ), |
|
| 4928 | 'identifier', |
|
| 4929 | 'eng-US', |
|
| 4930 | ), |
|
| 4931 | ); |
|
| 4932 | } |
|
| 4933 | ||
| 4934 | /** |
|
| 4935 | * Test for the updateContent() method. |
|