diff -u b/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php b/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php --- b/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php +++ b/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php @@ -107,7 +107,7 @@ */ public function testCacheCustomExpiration() { // Override form cache expiration so that the cached form expired yesterday. - new Settings(['form_cache_expiration' => -1 * (24*60*60), 'hash_salt' => $this->randomMachineName()]); + new Settings(['form_cache_expiration' => -1 * (24 * 60 * 60), 'hash_salt' => $this->randomMachineName()]); \Drupal::formBuilder()->setCache($this->formBuildId, $this->form, $this->formState); $cached_form_state = new FormState();