mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #473 from majna/2.1-cache-clear
Fix Cache::clear() calls in tests.
This commit is contained in:
commit
6502ab8f39
2 changed files with 3 additions and 2 deletions
|
@ -46,7 +46,7 @@ class CacheSessionTest extends CakeTestCase {
|
|||
* @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 @@ class ViewTest extends CakeTestCase {
|
|||
'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 @@ 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::drop('test_view');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue