You are here

public function DatabaseBackendTest::testCacheBackendDatabaseIsBackendOverridable in Drupal 10

Same name and namespace in other branches
  1. 9 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\Cache

Code

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