Fix Cache::clear() calls in tests.

This commit is contained in:
Majna 2012-02-10 20:38:41 +01:00
parent 7e5ef1dc0d
commit 42cbb8cafe
2 changed files with 3 additions and 2 deletions

View file

@ -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);

View file

@ -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');
}