X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fconfig%2Ftests%2Fsrc%2FFunctional%2FConfigImportUploadTest.php;h=6f6659d743ba51fce213d71a83f8531cf6bc31f1;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=955842d01b289a8a784e356d411a43615e907df4;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/config/tests/src/Functional/ConfigImportUploadTest.php b/web/core/modules/config/tests/src/Functional/ConfigImportUploadTest.php index 955842d01..6f6659d74 100644 --- a/web/core/modules/config/tests/src/Functional/ConfigImportUploadTest.php +++ b/web/core/modules/config/tests/src/Functional/ConfigImportUploadTest.php @@ -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'));