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