protected function PermanentDatabaseBackendTest::createCacheBackend in Permanent Cache Bin 8
Same name and namespace in other branches
- 8.2 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\KernelCode
protected function createCacheBackend($bin) {
$cache = \Drupal::service('cache.backend.permanent_database')
->get($bin);
return $cache;
}