You are here

public function DatabaseBackendTest::testCacheBackendDatabaseIsBackendOverridable in Drupal 9

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\Cache

Code

public function testCacheBackendDatabaseIsBackendOverridable() {
  $definition = $this->container
    ->getDefinition('cache.backend.database');
  $this
    ->assertTrue($definition
    ->hasTag('backend_overridable'));
}