protected function PhpBackendUnitTest::createCacheBackend in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Cache/PhpBackendUnitTest.php \Drupal\system\Tests\Cache\PhpBackendUnitTest::createCacheBackend()
Creates a new instance of MemoryBackend.
Return value
A new MemoryBackend object.
Overrides GenericCacheBackendUnitTestBase::createCacheBackend
File
- core/
modules/ system/ src/ Tests/ Cache/ PhpBackendUnitTest.php, line 25 - Contains \Drupal\system\Tests\Cache\PhpBackendUnitTest.
Class
- PhpBackendUnitTest
- Unit test of the PHP cache backend using the generic cache unit test base.
Namespace
Drupal\system\Tests\CacheCode
protected function createCacheBackend($bin) {
$backend = new PhpBackend($bin, \Drupal::service('cache_tags.invalidator.checksum'));
return $backend;
}