mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
9fc4678fa3
commit
1881ff1664
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ class MemcacheEngineTest extends CakeTestCase {
|
||||||
Cache::write('some_value', 'cache1', 'memcache');
|
Cache::write('some_value', 'cache1', 'memcache');
|
||||||
$result = Cache::clear(true, 'memcache');
|
$result = Cache::clear(true, 'memcache');
|
||||||
$this->assertTrue($result);
|
$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');
|
Cache::write('some_value', 'cache2', 'memcache2');
|
||||||
$result = Cache::clear(false, 'memcache');
|
$result = Cache::clear(false, 'memcache');
|
||||||
|
|
Loading…
Reference in a new issue