1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-18 22:41:28 +02:00

[ticket/9657] Define user before injecting

PHPBB3-9657
This commit is contained in:
Joas Schilling
2013-07-13 11:25:38 -04:00
parent 6cde302ffa
commit 167ca1f33f
5 changed files with 5 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ class phpbb_content_visibility_get_visibility_sql_test extends phpbb_database_te
->method('acl_get')
->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