Mercurial > hg > isophonics-drupal-site
diff core/modules/image/src/Tests/ImageFieldDefaultImagesTest.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 | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php Mon Apr 23 09:46:53 2018 +0100 @@ -305,7 +305,7 @@ ); $non_image = $this->drupalGetTestFiles('text'); - $this->drupalPostForm(NULL, ['files[settings_default_image_uuid]' => drupal_realpath($non_image[0]->uri)], t("Upload")); + $this->drupalPostForm(NULL, ['files[settings_default_image_uuid]' => \Drupal::service('file_system')->realpath($non_image[0]->uri)], t("Upload")); $this->assertText('The specified file text-0.txt could not be uploaded.'); $this->assertText('Only files with the following extensions are allowed: png gif jpg jpeg.');