Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / field / src / Tests / EntityReference / EntityReferenceFileUploadTest.php
index ca36950ce84bdc444c724e39a2a92e7a3cd7652c..ebb0ba1efa969ed637068997b8b48b7022f3cf38 100644 (file)
@@ -114,7 +114,7 @@ class EntityReferenceFileUploadTest extends WebTestBase {
     $this->drupalLogin($user1);
 
     $test_file = current($this->drupalGetTestFiles('text'));
-    $edit['files[file_field_0]'] = drupal_realpath($test_file->uri);
+    $edit['files[file_field_0]'] = \Drupal::service('file_system')->realpath($test_file->uri);
     $this->drupalPostForm('node/add/' . $this->referencingType, $edit, 'Upload');
     $this->assertResponse(200);
     $edit = [