[ticket/346] Correctly pass config object in calendar test
B3P-346
This commit is contained in:
@@ -40,7 +40,7 @@ class phpbb_unit_modules_calendar_test extends \board3\portal\tests\testframewor
|
|||||||
'php'
|
'php'
|
||||||
);
|
);
|
||||||
self::$config = new \phpbb\config\config(array());
|
self::$config = new \phpbb\config\config(array());
|
||||||
$this->calendar = new \board3\portal\modules\calendar(array(), null, null, null, dirname(__FILE__) . '/../../../', 'php', null, $this->path_helper);
|
$this->calendar = new \board3\portal\modules\calendar(self::$config, null, null, null, dirname(__FILE__) . '/../../../', 'php', null, $this->path_helper);
|
||||||
define('PORTAL_MODULES_TABLE', 'phpbb_portal_modules');
|
define('PORTAL_MODULES_TABLE', 'phpbb_portal_modules');
|
||||||
define('PORTAL_CONFIG_TABLE', 'phpbb_portal_config');
|
define('PORTAL_CONFIG_TABLE', 'phpbb_portal_config');
|
||||||
$cache = $this->getMock('\phpbb\cache\cache', array('destroy', 'sql_exists', 'get', 'put'));
|
$cache = $this->getMock('\phpbb\cache\cache', array('destroy', 'sql_exists', 'get', 'put'));
|
||||||
|
|||||||
Reference in New Issue
Block a user