aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-09-09 17:28:56 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-09-09 17:28:56 -0500
commitf30b87519e9ead41525e1979cbce874e8a84e2b8 (patch)
treec21dc4ba2e8642e96e472df60518e55fd1be77e1 /tests
parent2146d0c36b1bec9dffba49e9727f8b493a0fb0f2 (diff)
downloadforums-f30b87519e9ead41525e1979cbce874e8a84e2b8.tar
forums-f30b87519e9ead41525e1979cbce874e8a84e2b8.tar.gz
forums-f30b87519e9ead41525e1979cbce874e8a84e2b8.tar.bz2
forums-f30b87519e9ead41525e1979cbce874e8a84e2b8.tar.xz
forums-f30b87519e9ead41525e1979cbce874e8a84e2b8.zip
[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
Diffstat (limited to 'tests')
-rw-r--r--tests/dbal/migrator_test.php2
-rw-r--r--tests/extension/manager_test.php2
-rw-r--r--tests/extension/metadata_manager_test.php2
-rw-r--r--tests/filesystem/clean_path_test.php2
-rw-r--r--tests/mock/extension_manager.php2
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php2
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php
index 9e55e4dd35..4be1fbe176 100644
--- a/tests/dbal/migrator_test.php
+++ b/tests/dbal/migrator_test.php
@@ -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',
diff --git a/tests/extension/manager_test.php b/tests/extension/manager_test.php
index a23e5a18d9..2da6ba5df5 100644
--- a/tests/extension/manager_test.php
+++ b/tests/extension/manager_test.php
@@ -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,
diff --git a/tests/extension/metadata_manager_test.php b/tests/extension/metadata_manager_test.php
index e5bd29092e..594568b805 100644
--- a/tests/extension/metadata_manager_test.php
+++ b/tests/extension/metadata_manager_test.php
@@ -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,
diff --git a/tests/filesystem/clean_path_test.php b/tests/filesystem/clean_path_test.php
index 50951fc88c..88352838bb 100644
--- a/tests/filesystem/clean_path_test.php
+++ b/tests/filesystem/clean_path_test.php
@@ -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()
diff --git a/tests/mock/extension_manager.php b/tests/mock/extension_manager.php
index 10b3595206..28eec5930f 100644
--- a/tests/mock/extension_manager.php
+++ b/tests/mock/extension_manager.php
@@ -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);
}
}
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index ce748bb9cf..dedaf4cd68 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -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,