function DatabaseBackendTest::testCacheBackendDatabaseIsBackendOverridable
Same name in other branches
- 10 core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php \Drupal\KernelTests\Core\Cache\DatabaseBackendTest::testCacheBackendDatabaseIsBackendOverridable()
- 11.x core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php \Drupal\KernelTests\Core\Cache\DatabaseBackendTest::testCacheBackendDatabaseIsBackendOverridable()
Test that the service "cache.backend.database" is backend overridable.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Cache/ DatabaseBackendTest.php, line 117
Class
- DatabaseBackendTest
- Unit test of the database backend using the generic cache unit test base.
Namespace
Drupal\KernelTests\Core\CacheCode
public function testCacheBackendDatabaseIsBackendOverridable() {
$definition = $this->container
->getDefinition('cache.backend.database');
$this->assertTrue($definition->hasTag('backend_overridable'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.