function DatabaseBackendTest::testCacheTagsInvalidatorChecksumIsBackendOverridable

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php \Drupal\KernelTests\Core\Cache\DatabaseBackendTest::testCacheTagsInvalidatorChecksumIsBackendOverridable()
  2. 11.x 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 126

Class

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

Namespace

Drupal\KernelTests\Core\Cache

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.