*/
protected function uploadImage($uri) {
$edit = [
- 'files[fid]' => drupal_realpath($uri),
+ 'files[fid]' => \Drupal::service('file_system')->realpath($uri),
];
$this->drupalGet('editor/dialog/image/basic_html');
$this->drupalPostForm('editor/dialog/image/basic_html', $edit, t('Upload'));