2 namespace TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider;
17 use Prophecy\Argument;
18 use Prophecy\Prophecy\ObjectProphecy;
22 use TYPO3\CMS\Core\Tests\UnitTestCase;
46 protected function setUp()
52 $cacheManagerProphecy = $this->prophesize(CacheManager::class);
54 $cacheFrontendProphecy = $this->prophesize(FrontendInterface::class);
55 $cacheManagerProphecy->getCache(Argument::cetera())->willReturn($cacheFrontendProphecy->reveal());
73 'systemLanguageRows' => [],
93 <label>aFlexFieldLabel</label>
111 $expected[
'processedTca'][
'columns'][
'aField'][
'config'][
'ds'] = [
117 'label' =>
'aFlexFieldLabel',
128 $this->assertEquals($expected, $this->subject->addData($input));
137 'systemLanguageRows' => [],
156 <sheetTitle>aTitle</sheetTitle>
162 <label>aFlexFieldLabel</label>
182 $expected[
'processedTca'][
'columns'][
'aField'][
'config'][
'ds'] = [
190 'label' =>
'aFlexFieldLabel',
198 'sheetTitle' =>
'aTitle',
206 $this->assertEquals($expected, $this->subject->addData($input));
215 'systemLanguageRows' => [],
229 $this->setExpectedException(\UnexpectedValueException::class, $this->anything(), 1440506893);
231 $this->subject->addData($input);
241 'systemLanguageRows' => [],
261 $expected[
'processedTca'][
'columns'][
'aField'][
'config'][
'ds'] = [
265 $expected[
'databaseRow'][
'aField'] = [
270 $this->assertEquals($expected, $this->subject->addData($input));