From 924ca38fea05fca2600a5dc41ccbdf8660e3b3ff Mon Sep 17 00:00:00 2001 From: gwoo Date: Thu, 26 Jun 2008 21:04:46 +0000 Subject: [PATCH] updating view test case for enhancement git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7273 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/view/view.test.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/cake/tests/cases/libs/view/view.test.php b/cake/tests/cases/libs/view/view.test.php index 4f494753c..0a3aca0c5 100644 --- a/cake/tests/cases/libs/view/view.test.php +++ b/cake/tests/cases/libs/view/view.test.php @@ -610,25 +610,30 @@ class ViewTest extends CakeTestCase { @unlink($path); } /** - * testRenderNocache method + * testRenderNocache method * * @access public * @return void */ +/* This is a new test case for a pending enhancement function testRenderNocache() { $this->PostsController->helpers = array('Cache', 'Html'); $this->PostsController->constructClasses(); $this->PostsController->cacheAction = 21600; $this->PostsController->here = '/posts/nocache_multiple_element'; + $this->PostsController->action = 'nocache_multiple_element'; $this->PostsController->nocache_multiple_element(); Configure::write('Cache.check', true); Configure::write('Cache.disable', false); - $View = new TestView($this->PostsController); - $View->render('nocache_multiple_element'); - $filename = CACHE . 'views' . DS . 'posts_nocache_multiple_element.php'; - $result = file_get_contents($filename); + + $View = new TestView($this->PostsController); + $View->render(); + + ob_start(); + $View->renderCache($filename, getMicroTime()); + $result = ob_get_clean(); @unlink($filename); $this->assertPattern('/php echo \$foo;/', $result); @@ -640,6 +645,7 @@ class ViewTest extends CakeTestCase { $this->assertPattern('/php echo \$foobar;/', $result); $this->assertPattern('/printing: "in sub1"/', $result); } +*/ /** * testSet method *