You are here

protected function PermanentDatabaseBackendTest::createCacheBackend in Permanent Cache Bin 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/PermanentDatabaseBackendTest.php \Drupal\Tests\pcb\Kernel\PermanentDatabaseBackendTest::createCacheBackend()

Creates a new instance of permanent cache backend.

Return value

\Drupal\pcb\Cache\PermanentDatabaseBackend A new PermanentDatabaseBackend cache backend.

Overrides GenericCacheBackendUnitTestBase::createCacheBackend

File

tests/src/Kernel/PermanentDatabaseBackendTest.php, line 31

Class

PermanentDatabaseBackendTest
Tests the PermanentDatabaseBackendTest.

Namespace

Drupal\Tests\pcb\Kernel

Code

protected function createCacheBackend($bin) {
  $cache = \Drupal::service('cache.backend.permanent_database')
    ->get($bin);
  return $cache;
}