mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Fix failing test.
This commit is contained in:
parent
08247a921f
commit
ad7db4cc54
1 changed files with 2 additions and 3 deletions
|
@ -762,13 +762,12 @@ class ViewTest extends CakeTestCase {
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue