abstract protected function GenericCacheBackendUnitTestBase::createCacheBackend in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php \Drupal\system\Tests\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/
modules/ system/ src/ Tests/ Cache/ GenericCacheBackendUnitTestBase.php - Gets a backend to test; this will get a shared instance set in the object.
7 methods override GenericCacheBackendUnitTestBase::createCacheBackend()
- ApcuBackendUnitTest::createCacheBackend in core/
modules/ system/ src/ Tests/ Cache/ ApcuBackendUnitTest.php - Creates a cache backend to test.
- BackendChainUnitTest::createCacheBackend in core/
modules/ system/ src/ Tests/ Cache/ BackendChainUnitTest.php - Creates a cache backend to test.
- ChainedFastBackendUnitTest::createCacheBackend in core/
modules/ system/ src/ Tests/ Cache/ ChainedFastBackendUnitTest.php - Creates a new instance of ChainedFastBackend.
- DatabaseBackendUnitTest::createCacheBackend in core/
modules/ system/ src/ Tests/ Cache/ DatabaseBackendUnitTest.php - Creates a new instance of DatabaseBackend.
- MemcacheBackendUnitTest::createCacheBackend in modules/
memcache/ src/ Tests/ MemcacheBackendUnitTest.php - Creates a new instance of DatabaseBackend.
File
- core/
modules/ system/ src/ Tests/ Cache/ GenericCacheBackendUnitTestBase.php, line 74 - Contains \Drupal\system\Tests\Cache\GenericCacheBackendUnitTestBase.
Class
- GenericCacheBackendUnitTestBase
- Tests any cache backend.
Namespace
Drupal\system\Tests\CacheCode
protected abstract function createCacheBackend($bin);