class FormDefinitionValidationServiceTest extends UnitTestCase
{
+ protected function setUp()
+ {
+ parent::setUp();
+ $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = '12345';
+ }
/**
* @test
public function validateAllPropertyValuesFromCreatableFormElementDataProvider(): array
{
$encryptionKeyBackup = $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
- $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = 12345;
+ $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = '12345';
$sessionToken = '54321';
$identifier = 'text-1';
],
];
+ // be aware that backup globals does not impact globals used in data providers as these are called before the setUp/tearDown is done
+ $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = $encryptionKeyBackup;
+
return [
[
[
public function validateAllPropertyValuesFromCreatablePropertyCollectionElementDataProvider(): array
{
$encryptionKeyBackup = $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
- $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = 12345;
+ $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = '12345';
$sessionToken = '54321';
$identifier = 'text-1';
],
];
+ // be aware that backup globals does not impact globals used in data providers as these are called before the setUp/tearDown is done
$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = $encryptionKeyBackup;
return [