diff core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 7a779792577d
children
line wrap: on
line diff
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php	Mon Apr 23 09:46:53 2018 +0100
@@ -114,7 +114,7 @@
     $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 = [