MemoryBackendUnitTest.php 634 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php

/**
 * @file
 * Definition of Drupal\system\Tests\Cache\ArrayBackendUnitTest.
 */

namespace Drupal\system\Tests\Cache;

use Drupal\Core\Cache\MemoryBackend;

/**
 * Tests MemoryBackend using GenericCacheBackendUnitTestBase.
 */
class MemoryBackendUnitTest extends GenericCacheBackendUnitTestBase {

  public static function getInfo() {
    return array(
      'name' => 'Memory cache backend',
      'description' => 'Unit test of the memory cache backend using the generic cache unit test base.',
      'group' => 'Cache',
    );
  }

  protected function createCacheBackend($bin) {
    return new MemoryBackend($bin);
  }
}