From f1194a4ec92f2c856d5c8308005195846c660b1b Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 14 Sep 2009 23:53:04 -0400 Subject: [PATCH] Commiting fix to pass tests in last commit. Making View::renderCache tests more specific. --- cake/libs/view/view.php | 2 +- cake/tests/cases/libs/view/view.test.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index ad5e6b2d6..7e4bd7573 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -481,7 +481,7 @@ class View extends Object { } $this->_triggerHelpers('beforeLayout'); - $this->output = $this->_render($layoutFileName, $data_for_layout, $loadHelpers); + $this->output = $this->_render($layoutFileName, $data_for_layout, $loadHelpers, true); if ($this->output === false) { $this->output = $this->_render($layoutFileName, $data_for_layout); diff --git a/cake/tests/cases/libs/view/view.test.php b/cake/tests/cases/libs/view/view.test.php index 7339e92e7..9edb431bf 100644 --- a/cake/tests/cases/libs/view/view.test.php +++ b/cake/tests/cases/libs/view/view.test.php @@ -774,7 +774,10 @@ class ViewTest extends CakeTestCase { ob_start(); $View->renderCache($path, '+1 second'); $result = ob_get_clean(); - $this->assertFalse(empty($result)); + + $expected = 'some cacheText'; + $this->assertPattern('/^some cacheText/', $result); + @unlink($path); }