function GenericCacheBackendUnitTestBase::createCacheBackend
Same name in this branch
- 8.9.x core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php \Drupal\system\Tests\Cache\GenericCacheBackendUnitTestBase::createCacheBackend()
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase::createCacheBackend()
- 10 core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase::createCacheBackend()
- 11.x core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php \Drupal\KernelTests\Core\Cache\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/
tests/ Drupal/ KernelTests/ Core/ Cache/ GenericCacheBackendUnitTestBase.php - Gets a backend to test; this will get a shared instance set in the object.
6 methods override GenericCacheBackendUnitTestBase::createCacheBackend()
- ApcuBackendTest::createCacheBackend in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ ApcuBackendTest.php - Creates a cache backend to test.
- BackendChainTest::createCacheBackend in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ BackendChainTest.php - Creates a cache backend to test.
- ChainedFastBackendTest::createCacheBackend in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ ChainedFastBackendTest.php - Creates a new instance of ChainedFastBackend.
- DatabaseBackendTest::createCacheBackend in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ DatabaseBackendTest.php - Creates a new instance of DatabaseBackend.
- MemoryBackendTest::createCacheBackend in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ MemoryBackendTest.php - Creates a new instance of MemoryBackend.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Cache/ GenericCacheBackendUnitTestBase.php, line 69
Class
- GenericCacheBackendUnitTestBase
- Tests any cache backend.
Namespace
Drupal\KernelTests\Core\CacheCode
protected abstract function createCacheBackend($bin);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.