<?php
+declare(strict_types = 1);
namespace TYPO3\CMS\Backend\Tests\UnitDeprecated\Form\FormDataProvider;
/*
use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
/**
- * Test case for TcaFlexPrepare to render the functionality when a TCA migration happened
+ * Test case
*/
-class TcaFlexPrepareTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
+class TcaFlexPrepareTest extends UnitTestCase
{
- /**
- * Subject is not notice free, disable E_NOTICES
- */
- protected static $suppressNotices = true;
-
/**
* @var TcaFlexPrepare
*/
protected $backendUserProphecy;
/**
- * @var array A backup of registered singleton instances
+ * Set up
*/
- protected $singletonInstances = [];
-
protected function setUp()
{
- $this->singletonInstances = GeneralUtility::getSingletonInstances();
-
// Suppress cache foo in xml helpers of GeneralUtility
/** @var CacheManager|ObjectProphecy $cacheManagerProphecy */
$cacheManagerProphecy = $this->prophesize(CacheManager::class);
$this->subject = new TcaFlexPrepare();
}
+ /**
+ * Tear down
+ */
protected function tearDown()
{
GeneralUtility::purgeInstances();
- GeneralUtility::resetSingletonInstances($this->singletonInstances);
parent::tearDown();
}
<TCEforms>
<label>aFlexFieldLabel</label>
<config>
- <type>text</type>
- <default>defaultValue</default>
- <wizards>
- <t3editor>
- <type>userFunc</type>
- <userFunc>TYPO3\\CMS\\T3editor\\FormWizard->main</userFunc>
- <title>t3editor</title>
- <icon>content-table</icon>
- <module>
- <name>wizard_table</name>
- </module>
- <params>
- <format>html</format>
- </params>
- </t3editor>
- </wizards>
+ <type>input</type>
+ <renderType>inputDateTime</renderType>
+ <max>42</max>
</config>
</TCEforms>
</aFlexField>
'aFlexField' => [
'label' => 'aFlexFieldLabel',
'config' => [
- 'type' => 'text',
- 'default' => 'defaultValue',
- 'renderType' => 't3editor',
- 'format' => 'html',
+ 'type' => 'input',
+ 'renderType' => 'inputDateTime',
],
],
],
<TCEforms>
<label>aFlexFieldLabel</label>
<config>
- <type>text</type>
- <default>defaultValue</default>
- <wizards>
- <t3editor>
- <type>userFunc</type>
- <userFunc>TYPO3\\CMS\\T3editor\\FormWizard->main</userFunc>
- <title>t3editor</title>
- <icon>content-table</icon>
- <module>
- <name>wizard_table</name>
- </module>
- <params>
- <format>html</format>
- </params>
- </t3editor>
- </wizards>
+ <type>input</type>
+ <renderType>inputDateTime</renderType>
+ <max>42</max>
</config>
</TCEforms>
</aFlexField>
'aFlexField' => [
'label' => 'aFlexFieldLabel',
'config' => [
- 'type' => 'text',
- 'default' => 'defaultValue',
- 'renderType' => 't3editor',
- 'format' => 'html',
+ 'type' => 'input',
+ 'renderType' => 'inputDateTime',
],
],
],