Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix testClear() case

After clear of memcache config, all keys should be gone. So a read on a key should return false.
  • Loading branch information...
commit 1881ff166419d0d0a0b3f06747229b77ea988cef 1 parent 9fc4678
@rynop rynop authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
2  lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
@@ -361,7 +361,7 @@ public function testClear() {
Cache::write('some_value', 'cache1', 'memcache');
$result = Cache::clear(true, 'memcache');
- $this->assertEquals('cache1', Cache::read('some_value', 'memcache'));
+ $this->assertEquals(false, Cache::read('some_value', 'memcache'));
Cache::write('some_value', 'cache2', 'memcache2');
$result = Cache::clear(false, 'memcache');
Please sign in to comment.
Something went wrong with that request. Please try again.