function DatabaseBackendTest::testCacheTagsInvalidatorChecksumIsBackendOverridable

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

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