Skip to content
Permalink
Browse files

Adding tests for clearing the cache with memcache.

  • Loading branch information...
markstory committed Sep 18, 2010
1 parent 7518d0e commit 443e5233132e9f2ec31646e2bd9ba65e3f883f8a
Showing with 12 additions and 0 deletions.
  1. +12 −0 cake/tests/cases/libs/cache/memcache.test.php
@@ -303,4 +303,16 @@ function testConfigurationConflict() {
Cache::delete('short_duration_test', 'short_memcache');
}
/**
* test clearing memcache.
*
* @return void
*/
function testClear() {
Cache::write('some_value', 'value', 'memcache');
$result = Cache::clear(false, 'memcache');
$this->assertTrue($result);
$this->assertFalse(Cache::read('some_value', 'memcache'));
}
}

0 comments on commit 443e523

Please sign in to comment.
You can’t perform that action at this time.