[ticket/331] Specify datetime class in tests

This commit is contained in:
Marc Alexander
2014-08-17 14:37:40 +02:00
parent dfc78cafd6
commit 85d4d85ee5
6 changed files with 7 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ class phpbb_functions_fetch_news_test extends \board3\portal\tests\testframework
global $auth, $cache, $config, $phpbb_container, $phpbb_dispatcher, $template, $user;
$user = new \phpbb\user();
$user = new \phpbb\user('\phpbb\datetime');
$user->data['user_id'] = 2;
$user->timezone = new \DateTimeZone('UTC');
$user->add_lang('common');