Skip to content
This repository
Browse code

prevent deletion of views/cache/empty in test runs

  • Loading branch information...
commit e59bff2729fce0606b9ede932fa9ad4592730000 1 parent c6449f6
Rachman Chavik authored February 23, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/Cake/Test/Case/View/ViewTest.php
4  lib/Cake/Test/Case/View/ViewTest.php
@@ -724,7 +724,7 @@ public function testElementCache() {
724 724
 			'path' => CACHE . 'views' . DS,
725 725
 			'prefix' => ''
726 726
 		));
727  
-		Cache::clear(false, 'test_view');
  727
+		Cache::clear(true, 'test_view');
728 728
 
729 729
 		$View = new TestView($this->PostsController);
730 730
 		$View->elementCache = 'test_view';
@@ -761,7 +761,7 @@ public function testElementCache() {
761 761
 		$result = Cache::read('element__test_element_cache_param_foo', 'test_view');
762 762
 		$this->assertEquals($expected, $result);
763 763
 
764  
-		Cache::clear(false, 'test_view');
  764
+		Cache::clear(true, 'test_view');
765 765
 		Cache::drop('test_view');
766 766
 	}
767 767
 

0 notes on commit e59bff2

Please sign in to comment.
Something went wrong with that request. Please try again.