Permalink
Browse files

fix failing testcase

  • Loading branch information...
ceeram committed May 3, 2012
1 parent 1b288b7 commit 3a183849298e606475af8a606cb2c3a9c512ad8c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php
@@ -93,7 +93,7 @@ public function testNotModified() {
'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS)
));
$time = filemtime(App::themePath('TestTheme') . 'webroot' . DS . 'img' . DS . 'cake.power.gif');
- $time = new DateTime(date('Y-m-d H:i:s', $time), new DateTimeZone('UTC'));
+ $time = new DateTime('@' . $time);
$response = $this->getMock('CakeResponse', array('send', 'checkNotModified'));
$request = new CakeRequest('theme/test_theme/img/cake.power.gif');

0 comments on commit 3a18384

Please sign in to comment.