X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffield%2Fsrc%2FTests%2FEntityReference%2FEntityReferenceFileUploadTest.php;fp=web%2Fcore%2Fmodules%2Ffield%2Fsrc%2FTests%2FEntityReference%2FEntityReferenceFileUploadTest.php;h=ebb0ba1efa969ed637068997b8b48b7022f3cf38;hp=ca36950ce84bdc444c724e39a2a92e7a3cd7652c;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php b/web/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php index ca36950ce..ebb0ba1ef 100644 --- a/web/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php +++ b/web/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php @@ -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 = [