mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[ticket/16276] Further fix PHP nightly tests
PHPBB3-16276
This commit is contained in:
@@ -15,7 +15,7 @@ class get_callable_from_step_test extends phpbb_database_test_case
|
||||
{
|
||||
public function setUp(): void
|
||||
{
|
||||
global $phpbb_root_path, $php_ext, $table_prefix, $phpbb_log;
|
||||
global $phpbb_root_path, $php_ext, $table_prefix, $phpbb_log, $user;
|
||||
|
||||
parent::setUp();
|
||||
|
||||
@@ -24,6 +24,7 @@ class get_callable_from_step_test extends phpbb_database_test_case
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
$cache_service = $this->getMockBuilder('\phpbb\cache\service')->disableOriginalConstructor()->getMock();
|
||||
$user = $this->getMockBuilder('\phpbb\user')->disableOriginalConstructor()->getMock();
|
||||
$user->ip = '127.0.0.1';
|
||||
$module_manager = new \phpbb\module\module_manager(
|
||||
$this->getMockBuilder('\phpbb\cache\driver\dummy')->disableOriginalConstructor()->getMock(),
|
||||
$db,
|
||||
|
@@ -26,6 +26,8 @@ class schema_generator_test extends phpbb_test_case
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
|
||||
parent::setUp();
|
||||
|
||||
$this->config = new \phpbb\config\config(array());
|
||||
@@ -33,6 +35,8 @@ class schema_generator_test extends phpbb_test_case
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
$this->db_tools = $factory->get($this->db);
|
||||
$this->table_prefix = 'phpbb_';
|
||||
$this->phpbb_root_path = $phpbb_root_path;
|
||||
$this->php_ext = $phpEx;
|
||||
}
|
||||
|
||||
protected function get_schema_generator(array $class_names)
|
||||
|
Reference in New Issue
Block a user