Commiting fix to pass tests in last commit.

Making View::renderCache tests more specific.
This commit is contained in:
mark_story 2009-09-14 23:53:04 -04:00
parent 8cf7dbbbfa
commit f1194a4ec9
2 changed files with 5 additions and 2 deletions

View file

@ -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);

View file

@ -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);
}