fix failing testcase

This commit is contained in:
Ceeram 2012-05-03 09:55:52 +02:00
parent 1b288b74d9
commit 3a18384929

View file

@ -93,7 +93,7 @@ class AssetDispatcherTest extends CakeTestCase {
'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS) 'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS)
)); ));
$time = filemtime(App::themePath('TestTheme') . 'webroot' . DS . 'img' . DS . 'cake.power.gif'); $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')); $response = $this->getMock('CakeResponse', array('send', 'checkNotModified'));
$request = new CakeRequest('theme/test_theme/img/cake.power.gif'); $request = new CakeRequest('theme/test_theme/img/cake.power.gif');