Mercurial > hg > isophonics-drupal-site
diff core/modules/image/src/Tests/ImageFieldTestBase.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 | c2387f117808 |
line wrap: on
line diff
--- a/core/modules/image/src/Tests/ImageFieldTestBase.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/modules/image/src/Tests/ImageFieldTestBase.php Mon Apr 23 09:46:53 2018 +0100 @@ -69,7 +69,7 @@ $edit = [ 'title[0][value]' => $this->randomMachineName(), ]; - $edit['files[' . $field_name . '_0]'] = drupal_realpath($image->uri); + $edit['files[' . $field_name . '_0]'] = \Drupal::service('file_system')->realpath($image->uri); $this->drupalPostForm('node/add/' . $type, $edit, t('Preview')); } @@ -89,7 +89,7 @@ $edit = [ 'title[0][value]' => $this->randomMachineName(), ]; - $edit['files[' . $field_name . '_0]'] = drupal_realpath($image->uri); + $edit['files[' . $field_name . '_0]'] = \Drupal::service('file_system')->realpath($image->uri); $this->drupalPostForm('node/add/' . $type, $edit, t('Save')); if ($alt) { // Add alt text.