protected function MongoDBBackendUnitTest::createCacheBackend in MongoDB 8
Creates a new instance of DatabaseBackend.
Return value
A new DatabaseBackend object.
Overrides GenericCacheBackendUnitTestBase::createCacheBackend
File
- src/
Tests/ MongoDBBackendUnitTest.php, line 40 - Definition of Drupal\system\Tests\Cache\DatabaseBackendUnitTest.
Class
- MongoDBBackendUnitTest
- Tests DatabaseBackend using GenericCacheBackendUnitTestBase.
Namespace
Drupal\mongodb\TestsCode
protected function createCacheBackend($bin) {
return \Drupal::service('cache.backend.mongodb')
->get($bin);
}