diff --git a/core/lib/Drupal/Core/Cache/MemoryBackendFactory.php b/core/lib/Drupal/Core/Cache/MemoryBackendFactory.php new file mode 100644 index 0000000..6a9b132 --- /dev/null +++ b/core/lib/Drupal/Core/Cache/MemoryBackendFactory.php @@ -0,0 +1,27 @@ + 'Drupal\Core\Cache\MemoryBackend'); + $this->container->register('cache.memory', 'Drupal\Core\Cache\MemoryBackendFactory'); + $conf['cache_bin'] = 'cache.memory'; $this->container ->register('config.storage', 'Drupal\Core\Config\FileStorage') ->addArgument($this->configDirectories[CONFIG_ACTIVE_DIRECTORY]); diff --git a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php index ebadf43..06a29f1 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php @@ -724,7 +724,7 @@ protected function setUp() { $batch = $this->originalBatch; // Revert install_begin_request() cache and lock service overrides. - unset($conf['cache_classes']); + unset($conf['cache.bin']); unset($conf['lock_backend']); // Set path variables.