mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-23 08:43:02 +02:00
[ticket/11832] Fix constructions of phpbb_filesystem
PHPBB3-11832
This commit is contained in:
@@ -59,7 +59,12 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
|
||||
$container,
|
||||
$this->db,
|
||||
$this->config,
|
||||
new phpbb_filesystem(dirname(__FILE__) . '/../../phpBB/'),
|
||||
new phpbb_filesystem(
|
||||
new phpbb_symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
dirname(__FILE__) . '/../../phpBB/'
|
||||
),
|
||||
'phpbb_ext',
|
||||
dirname(__FILE__) . '/../../phpBB/',
|
||||
'php',
|
||||
|
@@ -114,7 +114,12 @@ class phpbb_extension_manager_test extends phpbb_database_test_case
|
||||
$container,
|
||||
$db,
|
||||
$config,
|
||||
new phpbb_filesystem($phpbb_root_path),
|
||||
new phpbb_filesystem(
|
||||
new phpbb_symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
$phpbb_root_path
|
||||
),
|
||||
'phpbb_ext',
|
||||
dirname(__FILE__) . '/',
|
||||
$php_ext,
|
||||
|
@@ -65,7 +65,12 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
|
||||
$container,
|
||||
$this->db,
|
||||
$this->config,
|
||||
new phpbb_filesystem($this->phpbb_root_path),
|
||||
new phpbb_filesystem(
|
||||
new phpbb_symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
$this->phpbb_root_path
|
||||
),
|
||||
'phpbb_ext',
|
||||
$this->phpbb_root_path,
|
||||
$this->phpEx,
|
||||
|
@@ -23,10 +23,8 @@ class phpbb_log_function_view_log_test extends phpbb_database_test_case
|
||||
|
||||
public static function view_log_function_data()
|
||||
{
|
||||
global $phpEx, $phpbb_dispatcher, $phpbb_container, $phpbb_root_path;
|
||||
global $phpEx, $phpbb_dispatcher;
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||
$phpbb_container = new phpbb_mock_container_builder();
|
||||
$phpbb_container->set('filesystem', new phpbb_filesystem($phpbb_root_path));
|
||||
|
||||
$expected_data_sets = array(
|
||||
1 => array(
|
||||
|
@@ -14,6 +14,11 @@ class phpbb_mock_extension_manager extends phpbb_extension_manager
|
||||
$this->phpbb_root_path = $phpbb_root_path;
|
||||
$this->php_ext = 'php';
|
||||
$this->extensions = $extensions;
|
||||
$this->filesystem = new phpbb_filesystem($phpbb_root_path);
|
||||
$this->filesystem = new phpbb_filesystem(
|
||||
new phpbb_symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
$phpbb_root_path
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -203,7 +203,12 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
$container,
|
||||
$db,
|
||||
$config,
|
||||
new phpbb_filesystem($phpbb_root_path),
|
||||
new phpbb_filesystem(
|
||||
new phpbb_symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
$phpbb_root_path
|
||||
),
|
||||
self::$config['table_prefix'] . 'ext',
|
||||
dirname(__FILE__) . '/',
|
||||
$php_ext,
|
||||
|
Reference in New Issue
Block a user