diff --git a/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php b/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php index f6cdd5a..6bf428c 100644 --- a/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php +++ b/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @@ -114,7 +114,13 @@ protected function setUp() { ['form_state', $this->formStateCacheStore], ])); - $this->configFactory = $this->getMockBuilder('Drupal\Core\Config\ConfigFactory'); + $this->configFactory = $this->getConfigFactoryStub( + [ + 'system.form' => [ + 'cache_lifetime' => 21600 + ] + ] + ); $this->csrfToken = $this->getMockBuilder('Drupal\Core\Access\CsrfTokenGenerator') ->disableOriginalConstructor()