projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More updates to stop using dev or alpha or beta versions.
[yaffs-website]
/
web
/
core
/
modules
/
field
/
src
/
Tests
/
EntityReference
/
EntityReferenceFileUploadTest.php
diff --git
a/web/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
b/web/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
index ca36950ce84bdc444c724e39a2a92e7a3cd7652c..ebb0ba1efa969ed637068997b8b48b7022f3cf38 100644
(file)
--- 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'));
$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 = [
$this->drupalPostForm('node/add/' . $this->referencingType, $edit, 'Upload');
$this->assertResponse(200);
$edit = [