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
- class \Drupal\mongodb_cache\Tests\CacheClearTest extends \Drupal\mongodb_cache\Tests\CacheClearCase uses CacheTestTrait
Expanded class hierarchy of CacheClearTest
File
- mongodb_cache/
src/ Tests/ CacheClearTest.php, line 15
Namespace
Drupal\mongodb_cache\TestsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheClearTest:: |
public | function | ||
CacheClearTest:: |
public | function | ||
CacheTestTrait:: |
public static | function | Declare the test to Simpletest. |