diff --git a/tests/src/Functional/AutomaticUpdatesFunctionalTestBase.php b/tests/src/Functional/AutomaticUpdatesFunctionalTestBase.php
index e290bb1e67d2f3198b47541a82326301295c2b1c..7cc20dd5c604c7a4f06d0072f1b4fbcaeb2a1ca6 100644
--- a/tests/src/Functional/AutomaticUpdatesFunctionalTestBase.php
+++ b/tests/src/Functional/AutomaticUpdatesFunctionalTestBase.php
@@ -46,6 +46,7 @@ abstract class AutomaticUpdatesFunctionalTestBase extends BrowserTestBase {
     $this->config('automatic_updates.settings')
       ->set('unattended.level', CronUpdateRunner::SECURITY)
       ->save();
+    $this->mockActiveCoreVersion('9.8.0');
   }
 
   /**
diff --git a/tests/src/Functional/UpdaterFormTestBase.php b/tests/src/Functional/UpdaterFormTestBase.php
index e3d13524e99c3c04c628ce7fc67f74b77e956629..3f5f2fb75c0934034a5ec916261847183cb09a74 100644
--- a/tests/src/Functional/UpdaterFormTestBase.php
+++ b/tests/src/Functional/UpdaterFormTestBase.php
@@ -60,7 +60,6 @@ abstract class UpdaterFormTestBase extends AutomaticUpdatesFunctionalTestBase {
     }
     $user = $this->createUser($permissions);
     $this->drupalLogin($user);
-    $this->mockActiveCoreVersion('9.8.0');
     $this->checkForUpdates();
   }