diff --git a/core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php b/core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php index 6500d1adef..7a40d97245 100644 --- a/core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php +++ b/core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php @@ -108,7 +108,7 @@ public function testEditorImageDialog() { ->addBuildInfo('args', [$this->editor]); $form_builder = $this->container->get('form_builder'); - $form_object = new EditorImageDialog(\Drupal::entityManager()->getStorage('file')); + $form_object = new EditorImageDialog(\Drupal::entityManager()->getStorage('file'), \Drupal::service('file_upload')); $form_id = $form_builder->getFormId($form_object, $form_state); $form = $form_builder->retrieveForm($form_id, $form_state); $form_builder->prepareForm($form_id, $form, $form_state);