public function CacheTest::testFlushAll

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/CacheTest.php, line 48

Class

CacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testFlushAll() {
  $cache = $this
    ->_getCacheDriver();
  $cache
    ->save('test_key1', '1');
  $cache
    ->save('test_key2', '2');
  $cache
    ->flushAll();
  $this
    ->assertFalse($cache
    ->contains('test_key1'));
  $this
    ->assertFalse($cache
    ->contains('test_key2'));
}