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