You are here

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

Expanded class hierarchy of CacheIsEmptyTest

File

mongodb_cache/src/Tests/CacheIsEmptyTest.php, line 14

Namespace

Drupal\mongodb_cache\Tests
View 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

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