diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-08-21 16:00:01 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-21 16:36:32 +0200 |
| commit | d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c (patch) | |
| tree | ab756b48f4d49cde749a7d7751994d9ecf48ba71 /tests/log/function_add_log_test.php | |
| parent | 2afbec5ac425b8913c2d3e3193b195190b7185db (diff) | |
| download | forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.tar forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.tar.gz forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.tar.bz2 forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.tar.xz forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.zip | |
[ticket/10714] Fix unit test because of events and moved files
PHPBB3-10714
Diffstat (limited to 'tests/log/function_add_log_test.php')
| -rw-r--r-- | tests/log/function_add_log_test.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/log/function_add_log_test.php b/tests/log/function_add_log_test.php index e7b3c4335f..77c4578baa 100644 --- a/tests/log/function_add_log_test.php +++ b/tests/log/function_add_log_test.php @@ -142,7 +142,7 @@ class phpbb_log_function_add_log_test extends phpbb_database_test_case */ public function test_add_log_function($expected, $user_id, $mode, $required1, $additional1 = null, $additional2 = null, $additional3 = null) { - global $db, $user; + global $db, $user, $phpbb_dispatcher; if ($expected) { @@ -155,6 +155,7 @@ class phpbb_log_function_add_log_test extends phpbb_database_test_case } $db = $this->new_dbal(); + $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); $user->ip = 'user_ip'; if ($user_id) |
