You are here

protected function DatabaseBackendUnitTest::createCacheBackend in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Cache/DatabaseBackendUnitTest.php \Drupal\system\Tests\Cache\DatabaseBackendUnitTest::createCacheBackend()

Creates a new instance of DatabaseBackend.

Return value

A new DatabaseBackend object.

Overrides GenericCacheBackendUnitTestBase::createCacheBackend

File

core/modules/system/src/Tests/Cache/DatabaseBackendUnitTest.php, line 32
Contains \Drupal\system\Tests\Cache\DatabaseBackendUnitTest.

Class

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

Namespace

Drupal\system\Tests\Cache

Code

protected function createCacheBackend($bin) {
  return new DatabaseBackend($this->container
    ->get('database'), $this->container
    ->get('cache_tags.invalidator.checksum'), $bin);
}