diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php index 9c63839..6ea09bd 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php @@ -41,7 +41,7 @@ class LocaleExportTest extends WebTestBase { $this->drupalLogin($this->admin_user); // Set the translation file directory to something writable. - $destination = conf_path() . '/files/translations'; + $destination = 'translations://'; file_prepare_directory($destination, FILE_CREATE_DIRECTORY); // Copy test po files to the same directory. diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php index 53cadc0..2ecd2f1 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php @@ -36,7 +36,7 @@ class LocaleFileImportStatus extends WebTestBase { $this->drupalLogin($admin_user); // Set the translation file directory to something writable. - $destination = conf_path() . '/files/translations'; + $destination = 'translations://'; file_prepare_directory($destination, FILE_CREATE_DIRECTORY); // Copy test po files to the same directory. diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php index d87af40..2852165 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php @@ -37,7 +37,7 @@ class LocaleImportFunctionalTest extends WebTestBase { function setUp() { parent::setUp(); // Set the translation file directory to something writable. - $destination = conf_path() . '/files/translations'; + $destination = 'translations://'; file_prepare_directory($destination, FILE_CREATE_DIRECTORY); // Copy test po files to the same directory.