Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / config / tests / src / Functional / ConfigImportUploadTest.php
index 955842d01b289a8a784e356d411a43615e907df4..6f6659d743ba51fce213d71a83f8531cf6bc31f1 100644 (file)
@@ -45,7 +45,7 @@ class ConfigImportUploadTest extends BrowserTestBase {
 
     // Attempt to upload a non-tar file.
     $text_file = $this->getTestFiles('text')[0];
-    $edit = ['files[import_tarball]' => drupal_realpath($text_file->uri)];
+    $edit = ['files[import_tarball]' => \Drupal::service('file_system')->realpath($text_file->uri)];
     $this->drupalPostForm('admin/config/development/configuration/full/import', $edit, t('Upload'));
     $this->assertText(t('Could not extract the contents of the tar file'));