Skip to content
Browse files

Commiting fix to pass tests in last commit.

Making View::renderCache tests more specific.
  • Loading branch information...
1 parent 8cf7dbb commit f1194a4ec92f2c856d5c8308005195846c660b1b @markstory markstory committed
Showing with 5 additions and 2 deletions.
  1. +1 −1 cake/libs/view/view.php
  2. +4 −1 cake/tests/cases/libs/view/view.test.php
View
2 cake/libs/view/view.php
@@ -481,7 +481,7 @@ function renderLayout($content_for_layout, $layout = null) {
}
$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);
View
5 cake/tests/cases/libs/view/view.test.php
@@ -774,7 +774,10 @@ function testRenderCache() {
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);
}

0 comments on commit f1194a4

Please sign in to comment.
Something went wrong with that request. Please try again.