diff core/modules/locale/tests/src/Functional/LocaleUpdateBase.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children c2387f117808
line wrap: on
line diff
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php	Mon Apr 23 09:46:53 2018 +0100
@@ -138,7 +138,7 @@
       'status' => FILE_STATUS_PERMANENT,
     ]);
     file_put_contents($file->getFileUri(), $po_header . $text);
-    touch(drupal_realpath($file->getFileUri()), $timestamp);
+    touch(\Drupal::service('file_system')->realpath($file->getFileUri()), $timestamp);
     $file->save();
   }