Merge pull request #473 from majna/2.1-cache-clear

Fix Cache::clear() calls in tests.
This commit is contained in:
Mark Story 2012-02-10 15:56:21 -08:00
commit 6502ab8f39
2 changed files with 3 additions and 2 deletions

View file

@ -46,7 +46,7 @@ class CacheSessionTest extends CakeTestCase {
* @return void
*/
public static function teardownAfterClass() {
Cache::clear('session_test');
Cache::clear(false, 'session_test');
Cache::drop('session_test');
Configure::write('Session', self::$_sessionBackup);

View file

@ -726,7 +726,7 @@ class ViewTest extends CakeTestCase {
'path' => CACHE . 'views' . DS,
'prefix' => ''
));
Cache::clear('test_view');
Cache::clear(false, 'test_view');
$View = new TestView($this->PostsController);
$View->elementCache = 'test_view';
@ -763,6 +763,7 @@ class ViewTest extends CakeTestCase {
$result = Cache::read('element__test_element_cache_param_foo', 'test_view');
$this->assertEquals($expected, $result);
Cache::clear(false, 'test_view');
Cache::drop('test_view');
}