Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / taxonomy / tests / src / Functional / TaxonomyImageTest.php
index 504c0da6c411f17d4702399ab96f76bea26c0319..fc2fe6243232ee9958a401cf6e297aecac4f5dbf 100644 (file)
@@ -80,7 +80,7 @@ class TaxonomyImageTest extends TaxonomyTestBase {
     $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]']]);