class CacheIsEmptyTest in MongoDB 7
Test cache_is_empty() function.
Check if a cache bin is empty after performing clear operations.
@package Drupal\mongodb_cache
@group MongoDB: Cache
Hierarchy
- class \Drupal\mongodb_cache\Tests\CacheIsEmptyTest extends \Drupal\mongodb_cache\Tests\CacheIsEmptyCase uses CacheTestTrait
Expanded class hierarchy of CacheIsEmptyTest
File
- mongodb_cache/
src/ Tests/ CacheIsEmptyTest.php, line 14
Namespace
Drupal\mongodb_cache\TestsView source
class CacheIsEmptyTest extends \CacheIsEmptyCase {
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 |
---|---|---|---|---|
CacheIsEmptyTest:: |
public | function | ||
CacheIsEmptyTest:: |
public | function | ||
CacheTestTrait:: |
public static | function | Declare the test to Simpletest. |