Mercurial > hg > isophonics-drupal-site
diff core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.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/taxonomy/tests/src/Functional/TaxonomyImageTest.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.php Mon Apr 23 09:46:53 2018 +0100 @@ -80,7 +80,7 @@ $files = $this->drupalGetTestFiles('image'); $image = array_pop($files); $edit['name[0][value]'] = $this->randomMachineName(); - $edit['files[field_test_0]'] = drupal_realpath($image->uri); + $edit['files[field_test_0]'] = \Drupal::service('file_system')->realpath($image->uri); $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add', $edit, t('Save')); $this->drupalPostForm(NULL, ['field_test[0][alt]' => $this->randomMachineName()], t('Save')); $terms = entity_load_multiple_by_properties('taxonomy_term', ['name' => $edit['name[0][value]']]);