Permalink
Browse files

Fix Cache::clear() calls in tests.

  • Loading branch information...
1 parent 7e5ef1d commit 42cbb8cafee2128f9014e83492491b0a05a9126f @majna majna committed Feb 10, 2012
@@ -46,7 +46,7 @@ public static function setupBeforeClass() {
* @return void
*/
public static function teardownAfterClass() {
- Cache::clear('session_test');
+ Cache::clear(false, 'session_test');
Cache::drop('session_test');
Configure::write('Session', self::$_sessionBackup);
@@ -726,7 +726,7 @@ public function testElementCache() {
'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 @@ public function testElementCache() {
$result = Cache::read('element__test_element_cache_param_foo', 'test_view');
$this->assertEquals($expected, $result);
+ Cache::clear(false, 'test_view');
Cache::drop('test_view');
}

0 comments on commit 42cbb8c

Please sign in to comment.