summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc')
-rw-r--r--core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc b/core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc
index 9116c85..eb18321 100644
--- a/core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc
+++ b/core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc
@@ -116,7 +116,7 @@ function _batch_test_finished_helper($batch_id, $success, $results, $operations)
],
];
- drupal_set_message(\Drupal::service('renderer')->renderPlain($error_message));
+ \Drupal::messenger()->addStatus(\Drupal::service('renderer')->renderPlain($error_message));
}
/**