X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftests%2Fsrc%2FFunctional%2FTaxonomyImageTest.php;h=fc2fe6243232ee9958a401cf6e297aecac4f5dbf;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=504c0da6c411f17d4702399ab96f76bea26c0319;hpb=bfbba508964731508b9bd6d5835c2edc858db95b;p=yaffs-website diff --git a/web/core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.php b/web/core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.php index 504c0da6c..fc2fe6243 100644 --- a/web/core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.php +++ b/web/core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.php @@ -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]']]);