You are here

public function CacheTest::testDeleteAll in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CacheTest.php \Doctrine\Tests\Common\Cache\CacheTest::testDeleteAll()

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CacheTest.php, line 97

Class

CacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testDeleteAll() {
  $cache = $this
    ->_getCacheDriver();
  $this
    ->assertTrue($cache
    ->save('key1', 1));
  $this
    ->assertTrue($cache
    ->save('key2', 2));
  $this
    ->assertTrue($cache
    ->deleteAll());
  $this
    ->assertFalse($cache
    ->contains('key1'));
  $this
    ->assertFalse($cache
    ->contains('key2'));
}