diff core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.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/LocaleUpdateCronTest.php	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php	Mon Apr 23 09:46:53 2018 +0100
@@ -47,7 +47,7 @@
     // Prepare for test: Simulate new translations being available.
     // Change the last updated timestamp of a translation file.
     $contrib_module_two_uri = 'public://local/contrib_module_two-8.x-2.0-beta4.de._po';
-    touch(drupal_realpath($contrib_module_two_uri), REQUEST_TIME);
+    touch(\Drupal::service('file_system')->realpath($contrib_module_two_uri), REQUEST_TIME);
 
     // Prepare for test: Simulate that the file has not been checked for a long
     // time. Set the last_check timestamp to zero.