diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2013-01-07 06:49:21 -0500 |
---|---|---|
committer | Senky <jakubsenko@gmail.com> | 2013-05-20 18:40:08 +0200 |
commit | 84fb8fc4f08cd1b35ab0813ac61101b479c577ec (patch) | |
tree | 18aa4b2a53f148ebd90519621d94899a56696089 /tests/functions_acp | |
parent | bee2faa560323a7385a3920b2f0c4e45b215da52 (diff) | |
download | forums-84fb8fc4f08cd1b35ab0813ac61101b479c577ec.tar forums-84fb8fc4f08cd1b35ab0813ac61101b479c577ec.tar.gz forums-84fb8fc4f08cd1b35ab0813ac61101b479c577ec.tar.bz2 forums-84fb8fc4f08cd1b35ab0813ac61101b479c577ec.tar.xz forums-84fb8fc4f08cd1b35ab0813ac61101b479c577ec.zip |
[ticket/11010] Mock user in order for the test to run standalone.
PHPBB3-11010
Diffstat (limited to 'tests/functions_acp')
-rw-r--r-- | tests/functions_acp/build_cfg_template_test.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functions_acp/build_cfg_template_test.php b/tests/functions_acp/build_cfg_template_test.php index 0a6c922ce1..3b304362a0 100644 --- a/tests/functions_acp/build_cfg_template_test.php +++ b/tests/functions_acp/build_cfg_template_test.php @@ -49,6 +49,7 @@ class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case global $user, $phpbb_dispatcher; $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); + $user = new phpbb_mock_user(); $user->lang = new phpbb_mock_lang(); $this->assertEquals($expected, build_cfg_template($tpl_type, $key, $new, $config_key, $vars)); @@ -84,6 +85,7 @@ class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case global $user, $phpbb_dispatcher; $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); + $user = new phpbb_mock_user(); $user->lang = new phpbb_mock_lang(); $this->assertEquals($expected, build_cfg_template($tpl_type, $key, $new, $config_key, $vars)); @@ -111,6 +113,7 @@ class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case global $user, $phpbb_dispatcher; $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); + $user = new phpbb_mock_user(); $user->lang = new phpbb_mock_lang(); $this->assertEquals($expected, build_cfg_template($tpl_type, $key, $new, $config_key, $vars)); @@ -162,6 +165,7 @@ class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case global $user, $phpbb_dispatcher; $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); + $user = new phpbb_mock_user(); $user->lang = new phpbb_mock_lang(); $this->assertEquals($expected, build_cfg_template($tpl_type, $key, $new, $config_key, $vars)); @@ -189,6 +193,7 @@ class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case global $user, $phpbb_dispatcher; $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); + $user = new phpbb_mock_user(); $user->lang = new phpbb_mock_lang(); $this->assertEquals($expected, build_cfg_template($tpl_type, $key, $new, $config_key, $vars)); |