Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / user / src / Tests / UserPasswordResetTest.php
index 88fe72c698c690b342b112ca6511d47242ba2570..b940878f2da288a725d3f996c3c152fed1fae180 100644 (file)
@@ -118,7 +118,7 @@ class UserPasswordResetTest extends PageCacheTagsTestBase {
     // invalidate the reset token.
     $image = current($this->drupalGetTestFiles('image'));
     $edit = [
-      'files[user_picture_0]' => drupal_realpath($image->uri),
+      'files[user_picture_0]' => \Drupal::service('file_system')->realpath($image->uri),
     ];
     $this->drupalPostAjaxForm(NULL, $edit, 'user_picture_0_upload_button');