Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removing a test case that doesn't need to exist anymore as the condit…
…ions for cache generation are now in CacheHelper.
  • Loading branch information
markstory committed Nov 7, 2010
1 parent c92ecdc commit f7f9c3f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions cake/tests/cases/libs/view/view.test.php
Expand Up @@ -711,30 +711,6 @@ function testRender() {
$this->assertPattern("/<div id=\"content\">posts index<\/div>/", $result);
}

/**
* test rendering layout with cache helper loaded
*
* @return void
*/
function testRenderLayoutWithMockCacheHelper() {
$_check = Configure::read('Cache.check');
Configure::write('Cache.check', true);

$Controller = new ViewPostsController($this->getMock('CakeRequest'));
$Controller->cacheAction = '1 day';
$View = new View($Controller);
$View->helpers = array('Cache', 'Html', 'Session');
$View->loadHelpers();

$View->Helpers->Cache = $this->getMock('CacheHelper', array(), array($View));
$View->Helpers->Cache->expects($this->exactly(2))->method('cache');

$result = $View->render('index');
$this->assertPattern('/posts index/', $result);

Configure::write('Cache.check', $_check);
}

/**
* test that view vars can replace the local helper variables
* and not overwrite the $this->Helper references
Expand Down

0 comments on commit f7f9c3f

Please sign in to comment.