Fix testClear() case

After clear of memcache config, all keys should be gone. So a read on a key should return false.
This commit is contained in:
Ryan 2012-12-26 16:34:23 -06:00
parent 9fc4678fa3
commit 1881ff1664

View file

@ -361,7 +361,7 @@ class MemcacheEngineTest extends CakeTestCase {
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');