Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 15, 2011
1 parent 08247a9 commit ad7db4c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cake/tests/cases/libs/view/view.test.php
Expand Up @@ -762,13 +762,12 @@ function testRenderLayoutWithMockCacheHelper() {
Configure::write('Cache.check', true); Configure::write('Cache.check', true);


$Controller =& new ViewPostsController(); $Controller =& new ViewPostsController();
$Controller->cacheAction = '1 day'; $Controller->cacheAction = '+1 day';
$View =& new View($Controller); $View =& new View($Controller);
$View->loaded['cache'] = new ViewTestMockCacheHelper(); $View->loaded['cache'] = new ViewTestMockCacheHelper();
$View->loaded['cache']->expectCallCount('cache', 2); $View->loaded['cache']->expectCallCount('cache', 2);


$result = $View->render('index'); $View->render('index');
$this->assertPattern('/posts index/', $result);


Configure::write('Cache.check', $_check); Configure::write('Cache.check', $_check);
} }
Expand Down

0 comments on commit ad7db4c

Please sign in to comment.