2 namespace TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider;
17 use TYPO3\CMS\Core\Tests\UnitTestCase;
41 'systemLanguageRows' => [],
63 $this->setExpectedException(\UnexpectedValueException::class, $this->anything(), 1440676540);
65 $this->subject->addData($input);
84 'sheetDescription' =>
'aDescription',
85 'displayCond' =>
'aDisplayCond',
91 'label' =>
'aFlexFieldLabel',
103 'sheetTitle' =>
'anotherTitle',
109 'label' =>
'bFlexFieldLabel',
127 $expected[
'processedTca'][
'columns'][
'aField'][
'config'][
'ds'] = [
134 'label' =>
'aFlexFieldLabel',
140 'sheetDescription' =>
'aDescription',
141 'displayCond' =>
'aDisplayCond',
149 'label' =>
'bFlexFieldLabel',
155 'sheetTitle' =>
'anotherTitle',
161 $this->assertEquals($expected, $this->subject->addData($input));
183 'label' =>
'aFlexFieldLabel',
186 'default' =>
'defaultValue',
189 'type' =>
'userFunc',
190 'userFunc' =>
'TYPO3\\CMS\\T3editor\\FormWizard->main',
191 'title' =>
't3editor',
192 'icon' =>
'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_table.gif',
194 'name' =>
'wizard_table',
216 $expected[
'processedTca'][
'columns'][
'aField'][
'config'][
'ds'] = [
223 'label' =>
'aFlexFieldLabel',
226 'default' =>
'defaultValue',
227 'renderType' =>
't3editor',
237 $this->assertEquals($expected, $this->subject->addData($input));
251 'ds_pointerField' =>
'pointerField',
259 'title' =>
'section_1',
263 'aFlexContainer' => [
265 'title' =>
'aFlexContainerLabel',
269 'label' =>
'aFlexFieldLabel',
272 'default' =>
'defaultValue',
275 'type' =>
'userFunc',
276 'userFunc' =>
'TYPO3\CMS\T3editor\FormWizard->main',
277 'title' =>
't3editor',
278 'icon' =>
'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_table.gif',
280 'name' =>
'wizard_table',
306 $expected[
'processedTca'][
'columns'][
'aField'][
'config'][
'ds'] = [
313 'title' =>
'section_1',
317 'aFlexContainer' => [
319 'title' =>
'aFlexContainerLabel',
322 'label' =>
'aFlexFieldLabel',
325 'default' =>
'defaultValue',
326 'renderType' =>
't3editor',
340 $this->assertEquals($expected, $this->subject->addData($input));