function DatabaseBackendTest::testCacheBackendDatabaseIsBackendOverridable

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

Class

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

Namespace

Drupal\KernelTests\Core\Cache

Code

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

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