diff core/modules/media/tests/src/FunctionalJavascript/MediaSourceFileTest.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line diff
--- a/core/modules/media/tests/src/FunctionalJavascript/MediaSourceFileTest.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/media/tests/src/FunctionalJavascript/MediaSourceFileTest.php	Thu May 09 15:33:08 2019 +0100
@@ -80,7 +80,7 @@
 
     // Test the MIME type icon.
     $icon_base = \Drupal::config('media.settings')->get('icon_base_uri');
-    file_unmanaged_copy($icon_base . '/generic.png', $icon_base . '/text--plain.png');
+    \Drupal::service('file_system')->copy($icon_base . '/generic.png', $icon_base . '/text--plain.png');
     $this->drupalGet("media/add/{$media_type_id}");
     $page->attachFileToField("files[{$source_field_id}_0]", \Drupal::service('file_system')->realpath($test_filepath));
     $result = $assert_session->waitForButton('Remove');