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.
File
- drupal/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php, line 75
- Definition of Drupal\system\Tests\Cache\GenericCacheBackendUnitTestBase.
Class
- GenericCacheBackendUnitTestBase
- Tests any cache backend.
Namespace
Drupal\system\Tests\Cache
Code
protected abstract function createCacheBackend($bin);