Skip to content

Commit

Permalink
Add global LANG var to ReplaePlaceholderTest
Browse files Browse the repository at this point in the history
  • Loading branch information
sfroemkenjw committed Jan 15, 2024
1 parent 680e89d commit a8de485
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/Functional/Hooks/Form/ReplacePlaceholderHookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Core\SystemEnvironmentBuilder;
use TYPO3\CMS\Core\Http\ServerRequest;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Site\Entity\Site;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Form\Domain\Model\FormElements\GenericFormElement;
use TYPO3\CMS\Form\Domain\Model\Renderable\RenderableInterface;

Expand Down Expand Up @@ -62,6 +64,8 @@ public function setUp(): void
{
parent::setUp();

$GLOBALS['LANG'] = GeneralUtility::makeInstance(LanguageService::class);

$site = new Site('https://example.com', 1, [
'base' => '/',
'languages' => [
Expand Down

0 comments on commit a8de485

Please sign in to comment.