|
|
@@ -426,7 +426,8 @@ class CellTest extends TestCase
|
|
|
->will($this->returnValue(false));
|
|
|
$mock->expects($this->once())
|
|
|
->method('write')
|
|
|
- ->with('cell_test_app_view_cell_articles_cell_display_default', "dummy\n");
|
|
|
+ ->with('cell_test_app_view_cell_articles_cell_display_default', "dummy\n")
|
|
|
+ ->will($this->returnValue(true));
|
|
|
Cache::setConfig('default', $mock);
|
|
|
|
|
|
$cell = $this->View->cell('Articles', [], ['cache' => true]);
|
|
|
@@ -471,7 +472,8 @@ class CellTest extends TestCase
|
|
|
->will($this->returnValue(false));
|
|
|
$mock->expects($this->once())
|
|
|
->method('write')
|
|
|
- ->with('my_key', "dummy\n");
|
|
|
+ ->with('my_key', "dummy\n")
|
|
|
+ ->will($this->returnValue(true));
|
|
|
Cache::setConfig('cell', $mock);
|
|
|
|
|
|
$cell = $this->View->cell('Articles', [], [
|
|
|
@@ -496,7 +498,8 @@ class CellTest extends TestCase
|
|
|
->will($this->returnValue(false));
|
|
|
$mock->expects($this->once())
|
|
|
->method('write')
|
|
|
- ->with('cell_test_app_view_cell_articles_cell_customTemplate_default', "<h1>This is the alternate template</h1>\n");
|
|
|
+ ->with('cell_test_app_view_cell_articles_cell_customTemplate_default', "<h1>This is the alternate template</h1>\n")
|
|
|
+ ->will($this->returnValue(true));
|
|
|
Cache::setConfig('default', $mock);
|
|
|
|
|
|
$this->deprecated(function () {
|