From 2ace6bb0b1e804e60d862c15b01828e5d3c96132 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 3 Jan 2010 23:51:31 -0500 Subject: [PATCH] Updating Controllers used to test full page caching to reflect changes in CacheHelper's functionality. --- cake/tests/cases/dispatcher.test.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cake/tests/cases/dispatcher.test.php b/cake/tests/cases/dispatcher.test.php index 0d9e862356f..2b99cd827fa 100644 --- a/cake/tests/cases/dispatcher.test.php +++ b/cake/tests/cases/dispatcher.test.php @@ -449,8 +449,9 @@ class TestCachedPagesController extends AppController { * @access public */ var $cacheAction = array( - 'index'=> '+2 sec', 'test_nocache_tags'=>'+2 sec', - 'view/' => '+2 sec' + 'index' => '+2 sec', + 'test_nocache_tags' => '+2 sec', + 'view' => '+2 sec' ); /** @@ -2097,9 +2098,8 @@ function testFullPageCachingDispatch() { $filename = $this->__cachePath($dispatcher->here); $this->assertTrue(file_exists($filename)); unlink($filename); - - $url = 'TestCachedPages/test_nocache_tags'; } + /** * test that cached() registers a view and un-registers it. Tests * that helpers using ClassRegistry::getObject('view'); don't fail @@ -2139,7 +2139,6 @@ function testCachedRegisteringViewObject() { $this->assertEqual($result, $expected); $filename = $this->__cachePath($dispatcher->here); - unlink($filename); ClassRegistry::flush(); }