Skip to content

Commit

Permalink
Fix testClear() case
Browse files Browse the repository at this point in the history
After clear of memcache config, all keys should be gone. So a read on a key should return false.
  • Loading branch information
rynop committed Dec 26, 2012
1 parent 9fc4678 commit 1881ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
Expand Up @@ -361,7 +361,7 @@ public function testClear() {
Cache::write('some_value', 'cache1', 'memcache');
$result = Cache::clear(true, 'memcache');
$this->assertTrue($result);
$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');
Expand Down

0 comments on commit 1881ff1

Please sign in to comment.