aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-08-10 13:40:27 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-08-10 13:43:04 +0200
commit8d99b4afe1557a6ec0e760c4876bb06a3b9991d3 (patch)
treecaea0dc9618acd71add637ac8ed0fd83100fa5be /tests/controller
parenta57a96cbddbfdad65823aeca2901f26b62c9b12d (diff)
downloadforums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.tar
forums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.tar.gz
forums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.tar.bz2
forums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.tar.xz
forums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.zip
[ticket/12932] Fix tests and calls to create_datetime
PHPBB3-12932
Diffstat (limited to 'tests/controller')
-rw-r--r--tests/controller/controller_test.php2
-rw-r--r--tests/controller/helper_route_test.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/controller/controller_test.php b/tests/controller/controller_test.php
index 67faf83e29..58bcf0ef81 100644
--- a/tests/controller/controller_test.php
+++ b/tests/controller/controller_test.php
@@ -72,7 +72,7 @@ class phpbb_controller_controller_test extends phpbb_test_case
include(__DIR__.'/phpbb/controller/foo.php');
}
- $resolver = new \phpbb\controller\resolver(new \phpbb\user, $container, dirname(__FILE__) . '/');
+ $resolver = new \phpbb\controller\resolver(new \phpbb\user('\phpbb\datetime'), $container, dirname(__FILE__) . '/');
$symfony_request = new Request();
$symfony_request->attributes->set('_controller', 'foo.controller:handle');
diff --git a/tests/controller/helper_route_test.php b/tests/controller/helper_route_test.php
index 206c3a4f0b..04bff81683 100644
--- a/tests/controller/helper_route_test.php
+++ b/tests/controller/helper_route_test.php
@@ -20,7 +20,7 @@ class phpbb_controller_helper_route_test extends phpbb_test_case
global $phpbb_dispatcher, $phpbb_root_path, $phpEx;
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
- $this->user = $this->getMock('\phpbb\user');
+ $this->user = new \phpbb\user('\phpbb\datetime');
$phpbb_path_helper = new \phpbb\path_helper(
new \phpbb\symfony_request(
new phpbb_mock_request()