diff core/modules/user/src/Tests/UserPasswordResetTest.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
line wrap: on
line diff
--- a/core/modules/user/src/Tests/UserPasswordResetTest.php	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/modules/user/src/Tests/UserPasswordResetTest.php	Mon Apr 23 09:46:53 2018 +0100
@@ -118,7 +118,7 @@
     // 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');