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 19575840f29e343c425075879c22151b9e9e20c8..ebb0ba1efa969ed637068997b8b48b7022f3cf38 100644
(file)
--- a/
web/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
+++ b/
web/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
@@
-77,7
+77,6
@@
class EntityReferenceFileUploadTest extends WebTestBase {
],
])->save();
],
])->save();
-
// Create a file field.
$file_field_name = 'file_field';
$field_storage = FieldStorageConfig::create([
// 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'));
$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 = [