mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
prevent deletion of views/cache/empty in test runs
This commit is contained in:
parent
c6449f649f
commit
e59bff2729
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue