Skip to content

Commit

Permalink
[TASK] Don't fake LANG global if already faked
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jan 15, 2024
1 parent 58be9d1 commit 2dd19bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/Unit/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use TYPO3\CMS\Core\Core\ApplicationContext;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Localization\LanguageServiceFactory;
use TYPO3\CMS\Core\Localization\Locale;
use TYPO3\CMS\Core\Localization\Locales;
use TYPO3\CMS\Core\Localization\LocalizationFactory;
Expand Down Expand Up @@ -73,7 +74,9 @@ protected function setUp(): void
);

$GLOBALS['EXEC_TIME'] = time();
$GLOBALS['LANG'] = (object) ['csConvObj' => new CharsetConverter()];
if (!isset($GLOBALS['LANG'])) {
$GLOBALS['LANG'] = (object) ['csConvObj' => new CharsetConverter()];
}
$GLOBALS['TYPO3_CONF_VARS']['BE']['versionNumberInFilename'] = false;
$GLOBALS['TYPO3_CONF_VARS']['FE']['versionNumberInFilename'] = false;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['preProcessors'] = [];
Expand Down

0 comments on commit 2dd19bf

Please sign in to comment.