From 42cbb8cafee2128f9014e83492491b0a05a9126f Mon Sep 17 00:00:00 2001 From: Majna Date: Fri, 10 Feb 2012 20:38:41 +0100 Subject: [PATCH] Fix Cache::clear() calls in tests. --- .../Test/Case/Model/Datasource/Session/CacheSessionTest.php | 2 +- lib/Cake/Test/Case/View/ViewTest.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Model/Datasource/Session/CacheSessionTest.php b/lib/Cake/Test/Case/Model/Datasource/Session/CacheSessionTest.php index 95583afed..381b3fda2 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Session/CacheSessionTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Session/CacheSessionTest.php @@ -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); diff --git a/lib/Cake/Test/Case/View/ViewTest.php b/lib/Cake/Test/Case/View/ViewTest.php index d807b82f6..decc9478a 100644 --- a/lib/Cake/Test/Case/View/ViewTest.php +++ b/lib/Cake/Test/Case/View/ViewTest.php @@ -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'); }