aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions_user
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-01-22 22:40:53 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-01-22 22:40:53 +0100
commite8fd8b9a4b37f7d7d3955cd2b0d79139a2c0222d (patch)
tree00dc80a7b4f1b92bcbbd402968cbee336c55a5ca /tests/functions_user
parentd2e395b41fa58b59a398688f23a8b10943c00955 (diff)
downloadforums-e8fd8b9a4b37f7d7d3955cd2b0d79139a2c0222d.tar
forums-e8fd8b9a4b37f7d7d3955cd2b0d79139a2c0222d.tar.gz
forums-e8fd8b9a4b37f7d7d3955cd2b0d79139a2c0222d.tar.bz2
forums-e8fd8b9a4b37f7d7d3955cd2b0d79139a2c0222d.tar.xz
forums-e8fd8b9a4b37f7d7d3955cd2b0d79139a2c0222d.zip
[ticket/10714] Fix missing parameter and global phpbb_log in unit tests
PHPBB3-10714
Diffstat (limited to 'tests/functions_user')
-rw-r--r--tests/functions_user/group_user_attributes_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functions_user/group_user_attributes_test.php b/tests/functions_user/group_user_attributes_test.php
index f13156c2cc..4336fd894e 100644
--- a/tests/functions_user/group_user_attributes_test.php
+++ b/tests/functions_user/group_user_attributes_test.php
@@ -125,7 +125,7 @@ class phpbb_functions_user_group_user_attributes_test extends phpbb_database_tes
*/
public function test_group_user_attributes($description, $user_id, $group_id, $group_row, $expected)
{
- global $auth, $cache, $db, $phpbb_dispatcher, $user, $phpbb_container;
+ global $auth, $cache, $db, $phpbb_dispatcher, $user, $phpbb_container, $phpbb_log, $phpbb_root_path, $phpEx;
$user->ip = '';
$cache = new phpbb_mock_cache;
@@ -141,6 +141,7 @@ class phpbb_functions_user_group_user_attributes_test extends phpbb_database_tes
->method('get')
->with('cache.driver')
->will($this->returnValue($cache_driver));
+ $phpbb_log = new phpbb_log($db, $user, $auth, $phpbb_dispatcher, $phpbb_root_path, 'adm/', $phpEx, LOG_TABLE);
group_user_attributes('default', $group_id, array($user_id), false, 'group_name', $group_row);