Skip to content
Permalink
Browse files

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 6, 2010
1 parent c92ecdc commit f7f9c3f6a210f2aea58bc68b3ebd5d0e135df136
Showing with 0 additions and 24 deletions.
  1. +0 −24 cake/tests/cases/libs/view/view.test.php
@@ -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

0 comments on commit f7f9c3f

Please sign in to comment.
You can’t perform that action at this time.