diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-12-07 16:05:57 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-12-07 16:05:57 +0100 |
commit | 0f94ff91383ee0ed533048db96a34164ba94b0a4 (patch) | |
tree | 958843c667c4d6d60817ef42d0aa72f80e52bc98 /tests/log/function_add_log_test.php | |
parent | 37530abd394ebc22480a133ffd1ca41276d73b43 (diff) | |
download | forums-0f94ff91383ee0ed533048db96a34164ba94b0a4.tar forums-0f94ff91383ee0ed533048db96a34164ba94b0a4.tar.gz forums-0f94ff91383ee0ed533048db96a34164ba94b0a4.tar.bz2 forums-0f94ff91383ee0ed533048db96a34164ba94b0a4.tar.xz forums-0f94ff91383ee0ed533048db96a34164ba94b0a4.zip |
[ticket/10714] Add global variables for the unit tests
PHPBB3-10714
Diffstat (limited to 'tests/log/function_add_log_test.php')
-rw-r--r-- | tests/log/function_add_log_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/log/function_add_log_test.php b/tests/log/function_add_log_test.php index 77c4578baa..7ed862c523 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, $phpbb_dispatcher; + global $db, $cache, $user, $phpbb_log, $phpbb_dispatcher; if ($expected) { @@ -155,7 +155,9 @@ class phpbb_log_function_add_log_test extends phpbb_database_test_case } $db = $this->new_dbal(); + $cache = new phpbb_mock_cache; $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); + $phpbb_log = new phpbb_log(LOG_TABLE); $user->ip = 'user_ip'; if ($user_id) |