diff --git a/core/modules/image/tests/src/Kernel/EditorImageStyleDialogTest.php b/core/modules/image/tests/src/Kernel/EditorImageStyleDialogTest.php index 708ad5c..c154e60 100644 --- a/core/modules/image/tests/src/Kernel/EditorImageStyleDialogTest.php +++ b/core/modules/image/tests/src/Kernel/EditorImageStyleDialogTest.php @@ -93,9 +93,14 @@ protected function setUp() { * Tests that editor image dialog works as expected. */ public function testEditorImageStyleDialog() { + $source_path = $this->root . '/core/modules/image/sample.png'; + $destination_path = 'public://sample.png'; + file_unmanaged_copy($source_path, $destination_path); + $sample_file = file_url_transform_relative(file_create_url($destination_path)); + $input = [ 'editor_object' => [ - 'src' => '/core/modules/image/sample.png', + 'src' => $sample_file, 'alt' => 'Balloons floating above a field.', 'width' => '800', 'height' => '600',