X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flocale%2Ftests%2Fsrc%2FFunctional%2FLocaleUpdateCronTest.php;fp=web%2Fcore%2Fmodules%2Flocale%2Ftests%2Fsrc%2FFunctional%2FLocaleUpdateCronTest.php;h=2e7add6033e89d61786be6e00e06ef9574f0dfb6;hp=d0d5379139422689f26468c4ae03733ac5c59723;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php b/web/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php index d0d537913..2e7add603 100644 --- a/web/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php +++ b/web/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php @@ -47,7 +47,7 @@ class LocaleUpdateCronTest extends LocaleUpdateBase { // 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.