Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / memcache / tests / src / Kernel / MemcacheBackendTest.php
1 <?php
2
3 namespace Drupal\Tests\memcache\Kernel;
4
5 use Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase;
6 use Drupal\memcache\MemcacheBackendFactory;
7
8 /**
9  * Tests the MemcacheBackend.
10  *
11  * @group memcache
12  */
13 class MemcacheBackendTest extends GenericCacheBackendUnitTestBase {
14
15   /**
16    * Modules to enable.
17    *
18    * @var array
19    */
20   public static $modules = ['system', 'memcache'];
21
22   /**
23    * Creates a new instance of DatabaseBackend.
24    *
25    * @return \Drupal\memcache\MemcacheBackend
26    *   A new MemcacheBackend object.
27    */
28   protected function createCacheBackend($bin) {
29     $factory = new MemcacheBackendFactory($this->container->get('memcache.factory'), $this->container->get('cache_tags.invalidator.checksum'));
30     return $factory->get($bin);
31   }
32
33 }