From c5c28598005736fd573eb667537f11bf1c7705a5 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 8 Oct 2011 21:20:51 -0400 Subject: [PATCH] Fixing failing tests. --- lib/Cake/Test/Case/View/Helper/CacheHelperTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php b/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php index 7fa6cd4b6..89f819bb6 100644 --- a/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php @@ -550,7 +550,9 @@ class CacheHelperTest extends CakeTestCase { $Cache = $this->getMock('CacheHelper', array('cache'), array($View)); $Cache->expects($this->once())->method('cache') - ->with('posts/index', $View->output, false); + ->with('posts/index', $View->output, false) + ->will($this->returnValue('')); + $Cache->afterRender('posts/index'); Configure::write('Cache.check', false); @@ -574,7 +576,9 @@ class CacheHelperTest extends CakeTestCase { $Cache = $this->getMock('CacheHelper', array('cache'), array($View)); $Cache->expects($this->once())->method('cache') - ->with('posts/index', $View->output, true); + ->with('posts/index', $View->output, true) + ->will($this->returnValue('')); + $Cache->afterLayout('posts/index'); Configure::write('Cache.check', false);