You are here

public function DatabaseBackendTest::testCacheTagsInvalidatorChecksumIsBackendOverridable 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::testCacheTagsInvalidatorChecksumIsBackendOverridable()

Test that the service "cache_tags.invalidator.checksum" is backend overridable.

File

core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php, line 109

Class

DatabaseBackendTest
Unit test of the database backend using the generic cache unit test base.

Namespace

Drupal\KernelTests\Core\Cache

Code

public function testCacheTagsInvalidatorChecksumIsBackendOverridable() {
  $definition = $this->container
    ->getDefinition('cache_tags.invalidator.checksum');
  $this
    ->assertTrue($definition
    ->hasTag('backend_overridable'));
}