Skip to content
Permalink
Browse files

Fix failing test.

  • Loading branch information...
markstory committed Oct 15, 2011
1 parent 08247a9 commit ad7db4cc541e2258178d4d76d145d81388eae544
Showing with 2 additions and 3 deletions.
  1. +2 −3 cake/tests/cases/libs/view/view.test.php
@@ -762,13 +762,12 @@ function testRenderLayoutWithMockCacheHelper() {
Configure::write('Cache.check', true);
$Controller =& new ViewPostsController();
$Controller->cacheAction = '1 day';
$Controller->cacheAction = '+1 day';
$View =& new View($Controller);
$View->loaded['cache'] = new ViewTestMockCacheHelper();
$View->loaded['cache']->expectCallCount('cache', 2);
$result = $View->render('index');
$this->assertPattern('/posts index/', $result);
$View->render('index');
Configure::write('Cache.check', $_check);
}

0 comments on commit ad7db4c

Please sign in to comment.
You can’t perform that action at this time.