Skip to content

Commit

Permalink
Updating Controllers used to test full page caching to reflect change…
Browse files Browse the repository at this point in the history
…s in CacheHelper's functionality.
  • Loading branch information
markstory committed Jan 4, 2010
1 parent 95135d1 commit 2ace6bb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cake/tests/cases/dispatcher.test.php
Expand Up @@ -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'
);

/**
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2139,7 +2139,6 @@ function testCachedRegisteringViewObject() {

$this->assertEqual($result, $expected);
$filename = $this->__cachePath($dispatcher->here);
unlink($filename);
ClassRegistry::flush();
}

Expand Down

0 comments on commit 2ace6bb

Please sign in to comment.