[BUGFIX] Do not resolve languageFilePath to absolutePath
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Utility / LocalizationUtilityTest.php
index 3e17481..d5eb578 100644 (file)
@@ -16,7 +16,6 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Utility;
 
 use Prophecy\Argument;
 use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
-use TYPO3\CMS\Core\Core\Environment;
 use TYPO3\CMS\Core\Localization\LocalizationFactory;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
@@ -205,7 +204,7 @@ class LocalizationUtilityTest extends UnitTestCase
      */
     protected function getLanguageFilePath(string $extensionName): string
     {
-        return Environment::getFrameworkBasePath() . '/' . $extensionName . '/Resources/Private/Language/locallang.xlf';
+        return  'EXT:' . $extensionName . '/Resources/Private/Language/locallang.xlf';
     }
 
     /**