From 98341eec3e35fc56acc5e08ac10546891f2915ff Mon Sep 17 00:00:00 2001 From: Daniel Huf Date: Mon, 25 Jan 2021 15:31:52 +0100 Subject: [PATCH] [BUGFIX] Deprecation #82254 --- Classes/Domain/Renderer/Command.php | 3 ++- Tests/Unit/Domain/Renderer/CommandTest.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/Domain/Renderer/Command.php b/Classes/Domain/Renderer/Command.php index 00161cf..c3d7c5e 100644 --- a/Classes/Domain/Renderer/Command.php +++ b/Classes/Domain/Renderer/Command.php @@ -1,6 +1,7 @@ get('mjml'); $temporaryMjmlFileWithPath = GeneralUtility::tempnam('mjml_', '.mjml'); diff --git a/Tests/Unit/Domain/Renderer/CommandTest.php b/Tests/Unit/Domain/Renderer/CommandTest.php index 0e0b794..a4a5ec8 100644 --- a/Tests/Unit/Domain/Renderer/CommandTest.php +++ b/Tests/Unit/Domain/Renderer/CommandTest.php @@ -3,6 +3,7 @@ namespace Saccas\Mjml\Tests\Functional\Domain\Renderer; use Saccas\Mjml\Domain\Renderer\Command; use Saccas\Mjml\Tests\Unit\AbstractUnitTestCase; +use TYPO3\CMS\Core\Configuration\ExtensionConfiguration; use TYPO3\CMS\Core\Package\Package; use TYPO3\CMS\Core\Package\PackageManager; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; @@ -45,7 +46,7 @@ class CommandTest extends AbstractUnitTestCase ->willReturn($packageMock); ExtensionManagementUtility::setPackageManager($packageManagerMock); - $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mjml'] = serialize([ + GeneralUtility::makeInstance(ExtensionConfiguration::class)->set('mjml', '', [ 'nodeBinaryPath' => 'node', 'mjmlBinaryPath' => 'node_modules/mjml/bin/', 'mjmlBinary' => 'mjml',