aboutsummaryrefslogtreecommitdiffstats
path: root/tests/content_visibility/get_global_visibility_sql_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-07-13 11:25:38 -0400
committerJoas Schilling <nickvergessen@gmx.de>2013-07-13 11:25:38 -0400
commit167ca1f33f8265e5dea6481cc69de16ccfdd0dce (patch)
treeeab17505dd335822853f398a6fe3a5ae23685c67 /tests/content_visibility/get_global_visibility_sql_test.php
parent6cde302ffaf9d238e279704955a5c00ee0bdfd36 (diff)
downloadforums-167ca1f33f8265e5dea6481cc69de16ccfdd0dce.tar
forums-167ca1f33f8265e5dea6481cc69de16ccfdd0dce.tar.gz
forums-167ca1f33f8265e5dea6481cc69de16ccfdd0dce.tar.bz2
forums-167ca1f33f8265e5dea6481cc69de16ccfdd0dce.tar.xz
forums-167ca1f33f8265e5dea6481cc69de16ccfdd0dce.zip
[ticket/9657] Define user before injecting
PHPBB3-9657
Diffstat (limited to 'tests/content_visibility/get_global_visibility_sql_test.php')
-rw-r--r--tests/content_visibility/get_global_visibility_sql_test.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/content_visibility/get_global_visibility_sql_test.php b/tests/content_visibility/get_global_visibility_sql_test.php
index bdb0a96954..0f019ffa50 100644
--- a/tests/content_visibility/get_global_visibility_sql_test.php
+++ b/tests/content_visibility/get_global_visibility_sql_test.php
@@ -130,6 +130,7 @@ class phpbb_content_visibility_get_global_visibility_sql_test extends phpbb_data
->method('acl_getf')
->with($this->stringContains('_'), $this->anything())
->will($this->returnValueMap($permissions));
+ $user = $this->getMock('phpbb_user');
$content_visibility = new phpbb_content_visibility($auth, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE);
$result = $db->sql_query('SELECT ' . $mode . '_id