mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Commiting fix to pass tests in last commit.
Making View::renderCache tests more specific.
This commit is contained in:
parent
8cf7dbbbfa
commit
f1194a4ec9
2 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue