More updates to stop using dev or alpha or beta versions.
[yaffs-website] / web / core / modules / field / src / Tests / EntityReference / EntityReferenceFileUploadTest.php
index 19575840f29e343c425075879c22151b9e9e20c8..ebb0ba1efa969ed637068997b8b48b7022f3cf38 100644 (file)
@@ -77,7 +77,6 @@ class EntityReferenceFileUploadTest extends WebTestBase {
       ],
     ])->save();
 
-
     // Create a file field.
     $file_field_name = 'file_field';
     $field_storage = FieldStorageConfig::create([
@@ -115,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 = [