You are here

class CacheClearTest in MongoDB 7

Cache clear test: check our clearing is done the proper way.

This test just wraps the core \CacheClearCase with a setUp()/tearDown() sequence making it compatible with the MongoDB cache plugin.

@package Drupal\mongodb_cache

@group MongoDB: Cache

Hierarchy

Expanded class hierarchy of CacheClearTest

File

mongodb_cache/src/Tests/CacheClearTest.php, line 15

Namespace

Drupal\mongodb_cache\Tests
View source
class CacheClearTest extends \CacheClearCase {
  use CacheTestTrait;

  /**
   * {@inheritdoc}
   */
  public function setUp() {
    drupal_flush_all_caches();
    parent::setUp();
  }

  /**
   * {@inheritdoc}
   */
  public function tearDown() {
    drupal_flush_all_caches();
    parent::tearDown();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CacheClearTest::setUp public function
CacheClearTest::tearDown public function
CacheTestTrait::getInfo public static function Declare the test to Simpletest.