function DatabaseBackendTest::createCacheBackend
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php \Drupal\KernelTests\Core\Cache\DatabaseBackendTest::createCacheBackend()
- 10 core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php \Drupal\KernelTests\Core\Cache\DatabaseBackendTest::createCacheBackend()
- 11.x core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php \Drupal\KernelTests\Core\Cache\DatabaseBackendTest::createCacheBackend()
Creates a new instance of DatabaseBackend.
Return value
\Drupal\Core\Cache\DatabaseBackend A new DatabaseBackend object.
Overrides GenericCacheBackendUnitTestBase::createCacheBackend
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Cache/ DatabaseBackendTest.php, line 34
Class
- DatabaseBackendTest
- Unit test of the database backend using the generic cache unit test base.
Namespace
Drupal\KernelTests\Core\CacheCode
protected function createCacheBackend($bin) {
return new DatabaseBackend($this->container
->get('database'), $this->container
->get('cache_tags.invalidator.checksum'), $bin, static::$maxRows);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.