Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
116 | 116 |
117 // Make sure the ajax request from uploading a user picture does not | 117 // Make sure the ajax request from uploading a user picture does not |
118 // invalidate the reset token. | 118 // invalidate the reset token. |
119 $image = current($this->drupalGetTestFiles('image')); | 119 $image = current($this->drupalGetTestFiles('image')); |
120 $edit = [ | 120 $edit = [ |
121 'files[user_picture_0]' => drupal_realpath($image->uri), | 121 'files[user_picture_0]' => \Drupal::service('file_system')->realpath($image->uri), |
122 ]; | 122 ]; |
123 $this->drupalPostAjaxForm(NULL, $edit, 'user_picture_0_upload_button'); | 123 $this->drupalPostAjaxForm(NULL, $edit, 'user_picture_0_upload_button'); |
124 | 124 |
125 // Change the forgotten password. | 125 // Change the forgotten password. |
126 $password = user_password(); | 126 $password = user_password(); |