Browse files

prevent deletion of views/cache/empty in test runs

  • Loading branch information...
1 parent c6449f6 commit e59bff2729fce0606b9ede932fa9ad4592730000 @rchavik rchavik committed Feb 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/View/ViewTest.php
View
4 lib/Cake/Test/Case/View/ViewTest.php
@@ -724,7 +724,7 @@ public function testElementCache() {
'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 @@ public function testElementCache() {
$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');
}

0 comments on commit e59bff2

Please sign in to comment.