prevent deletion of views/cache/empty in test runs

This commit is contained in:
Rachman Chavik 2012-02-23 22:20:23 +07:00
parent c6449f649f
commit e59bff2729

View file

@ -724,7 +724,7 @@ class ViewTest extends CakeTestCase {
'path' => CACHE . 'views' . DS,
'prefix' => ''
));
Cache::clear(false, 'test_view');
Cache::clear(true, 'test_view');
$View = new TestView($this->PostsController);
$View->elementCache = 'test_view';
@ -761,7 +761,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::clear(true, 'test_view');
Cache::drop('test_view');
}