diff --git a/tests/TestCase/Cache/CacheTest.php b/tests/TestCase/Cache/CacheTest.php index 7fd55566db0..826fbaedeab 100644 --- a/tests/TestCase/Cache/CacheTest.php +++ b/tests/TestCase/Cache/CacheTest.php @@ -556,7 +556,7 @@ public function testCacheDisable() Cache::enable(); Cache::clear(false, 'test_cache_disable_2'); } - + /** * test clearAll() method * @@ -572,17 +572,20 @@ public function testClearAll() 'engine' => 'File', 'path' => TMP . 'tests' ]); - + Cache::write('key_1', 'hello', 'configTest'); Cache::write('key_2', 'hello again', 'anotherConfigTest'); - + $this->assertSame(Cache::read('key_1', 'configTest'), 'hello'); $this->assertSame(Cache::read('key_2', 'anotherConfigTest'), 'hello again'); - - Cache::clearAll(); - + + $result = Cache::clearAll(); + $this->assertTrue($result['configTest']); + $this->assertTrue($result['anotherConfigTest']); $this->assertFalse(Cache::read('key_1', 'configTest')); $this->assertFalse(Cache::read('key_2', 'anotherConfigTest')); + Cache::drop('configTest'); + Cache::drop('anotherConfigTest'); } /**