[ticket/331] Add missing arguments to modules helper in tests
This commit is contained in:
@@ -19,7 +19,7 @@ class phpbb_portal_fetch_posts_test extends \board3\portal\tests\testframework\d
|
|||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
global $auth, $cache, $phpbb_dispatcher, $template, $user;;
|
global $auth, $cache, $phpbb_dispatcher, $template, $user;
|
||||||
|
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ class phpbb_portal_fetch_posts_test extends \board3\portal\tests\testframework\d
|
|||||||
// Pretend to allow downloads in forum 1
|
// Pretend to allow downloads in forum 1
|
||||||
$auth->acl[1][0] = true;
|
$auth->acl[1][0] = true;
|
||||||
$this->auth = $auth;
|
$this->auth = $auth;
|
||||||
$this->modules_helper = new \board3\portal\includes\modules_helper($auth);
|
$this->modules_helper = new \board3\portal\includes\modules_helper($auth, $this->config, new phpbb_mock_request());
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
$template = $this->getMock('\phpbb\template', array('set_filenames', 'destroy_block_vars', 'assign_block_vars', 'assign_display'));
|
$template = $this->getMock('\phpbb\template', array('set_filenames', 'destroy_block_vars', 'assign_block_vars', 'assign_display'));
|
||||||
$this->fetch_posts = new \board3\portal\portal\fetch_posts($auth, $cache, $this->config, $this->db, $this->modules_helper, $user);
|
$this->fetch_posts = new \board3\portal\portal\fetch_posts($auth, $cache, $this->config, $this->db, $this->modules_helper, $user);
|
||||||
|
|||||||
Reference in New Issue
Block a user