Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / system / tests / src / Functional / Form / StateValuesCleanAdvancedTest.php
index 63d8e70c305c0c294ff56265ec09114beebdca07..d30b4f110b116b1301e0b5a107649a6571eafa15 100644 (file)
@@ -43,7 +43,7 @@ class StateValuesCleanAdvancedTest extends BrowserTestBase {
     $this->assertTrue(is_file($this->image->uri), "The image file we're going to upload exists.");
 
     // "Browse" for the desired file.
-    $edit = ['files[image]' => drupal_realpath($this->image->uri)];
+    $edit = ['files[image]' => \Drupal::service('file_system')->realpath($this->image->uri)];
 
     // Post the form.
     $this->drupalPostForm('form_test/form-state-values-clean-advanced', $edit, t('Submit'));