mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing a test case that doesn't need to exist anymore as the conditions for cache generation are now in CacheHelper.
This commit is contained in:
parent
c92ecdcd1b
commit
f7f9c3f6a2
1 changed files with 0 additions and 24 deletions
|
@ -711,30 +711,6 @@ class ViewTest extends CakeTestCase {
|
|||
$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
|
||||
|
|
Loading…
Add table
Reference in a new issue