diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php index 2406b2d..a822d48 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php @@ -187,7 +187,7 @@ class LocaleFileImportStatus extends WebTestBase { variable_set('locale_translate_file_directory', $dir); $langcode = 'de'; $this->addLanguage($langcode); - $file_uri = tempnam($dir, "po_") . '.' . $langcode . '.po'; + $file_uri = 'translations://po_'. $this->randomString() .'.'. $langcode .'.po'; file_put_contents($file_uri, $this->randomString()); $this->assertTrue(is_file($file_uri), 'Translation file is created.'); language_delete($langcode);