diff --git a/Tests/Unit/Cache/VarnishBackendTest.php b/Tests/Unit/Cache/VarnishBackendTest.php index bdd77f0..fe97aae 100644 --- a/Tests/Unit/Cache/VarnishBackendTest.php +++ b/Tests/Unit/Cache/VarnishBackendTest.php @@ -1,6 +1,6 @@ siteNameBackup = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']; $this->extConfBackup = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['mkvarnish'] ?? []; + $this->encryptionKeyBackup = $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] ?? ''; + $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = 'testKey'; parent::setUp(); } @@ -61,6 +68,7 @@ protected function tearDown(): void { $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'] = $this->siteNameBackup; $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['mkvarnish'] = $this->extConfBackup; + $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = $this->encryptionKeyBackup; parent::tearDown(); }