importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/Structure.xml'); $this->setUpBackendUserFromFixture(1); $languageServiceFactory = $this->getContainer()->get(LanguageServiceFactory::class); if (!$languageServiceFactory instanceof LanguageServiceFactory) { throw new \UnexpectedValueException('Did not retrieve LanguageServiceFactory.', 1637847250); } $GLOBALS['LANG'] = $languageServiceFactory->create('default'); } protected function tearDown(): void { unset($GLOBALS['LANG']); parent::tearDown(); } }