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

[ticket/11832] Inject dependencies for phpbb_get_web_root_path (also moving)

Function moved from phpbb_get_web_root_path to filesystem::get_web_root_path

PHPBB3-11832
This commit is contained in:
Nathan Guse
2013-09-09 17:28:56 -05:00
parent 2146d0c36b
commit f30b87519e
10 changed files with 83 additions and 51 deletions

View File

@@ -59,7 +59,7 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
$container,
$this->db,
$this->config,
new phpbb_filesystem(),
new phpbb_filesystem(dirname(__FILE__) . '/../../phpBB/'),
'phpbb_ext',
dirname(__FILE__) . '/../../phpBB/',
'php',

View File

@@ -114,7 +114,7 @@ class phpbb_extension_manager_test extends phpbb_database_test_case
$container,
$db,
$config,
new phpbb_filesystem(),
new phpbb_filesystem($phpbb_root_path),
'phpbb_ext',
dirname(__FILE__) . '/',
$php_ext,

View File

@@ -65,7 +65,7 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
$container,
$this->db,
$this->config,
new phpbb_filesystem(),
new phpbb_filesystem($this->phpbb_root_path),
'phpbb_ext',
$this->phpbb_root_path,
$this->phpEx,

View File

@@ -14,7 +14,7 @@ class phpbb_filesystem_clean_path_test extends phpbb_test_case
public function setUp()
{
parent::setUp();
$this->filesystem = new phpbb_filesystem();
$this->filesystem = new phpbb_filesystem(__DIR__ . './../../phpBB/');
}
public function clean_path_data()

View File

@@ -14,6 +14,6 @@ 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();
$this->filesystem = new phpbb_filesystem($phpbb_root_path);
}
}

View File

@@ -203,7 +203,7 @@ class phpbb_functional_test_case extends phpbb_test_case
$container,
$db,
$config,
new phpbb_filesystem(),
new phpbb_filesystem($phpbb_root_path),
self::$config['table_prefix'] . 'ext',
dirname(__FILE__) . '/',
$php_ext,