function GenericCacheBackendUnitTestBase::createCacheBackend
Creates a cache backend to test.
Override this method to test a CacheBackend.
Parameters
string $bin: Bin name to use for this backend instance.
Return value
\Drupal\Core\Cache\CacheBackendInterface Cache backend to test.
1 call to GenericCacheBackendUnitTestBase::createCacheBackend()
- GenericCacheBackendUnitTestBase::getCacheBackend in core/
modules/ system/ src/ Tests/ Cache/ GenericCacheBackendUnitTestBase.php - Gets a backend to test; this will get a shared instance set in the object.
File
-
core/
modules/ system/ src/ Tests/ Cache/ GenericCacheBackendUnitTestBase.php, line 74
Class
- GenericCacheBackendUnitTestBase
- Tests any cache backend.
Namespace
Drupal\system\Tests\CacheCode
abstract protected function createCacheBackend($bin);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.