diff --git a/tests/src/Kernel/CronUpdaterTest.php b/tests/src/Kernel/CronUpdaterTest.php
index 55afedf23a7dc9a3ca718897939224c6a6417f21..4f293fa4e41288ab08e44f1efcbb39e9f73e73f3 100644
--- a/tests/src/Kernel/CronUpdaterTest.php
+++ b/tests/src/Kernel/CronUpdaterTest.php
@@ -134,8 +134,8 @@ class CronUpdaterTest extends AutomaticUpdatesKernelTestBase {
    */
   public function providerErrors(): array {
     $messages = [
-      'Precreate Event Error',
-      'Precreate Event Error 2',
+      'PreCreate Event Error',
+      'PreCreate Event Error 2',
     ];
     $summary = 'There were errors in updates';
     $result_no_summary = ValidationResult::createError([$messages[0]]);