mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 05:34:01 +02:00
[ticket/13697] Moving filesystem related functions to filesystem service
* Moving filesystem service to \phpbb\filesystem namespace * Wraping Symfony's Filesystem component * Moving filesystem related functions from includes/functions.php into \phpbb\filesystem\filesystem Functions moved (and deprecated): - phpbb_chmod - phpbb_is_writable - phpbb_is_absolute - phpbb_own_realpath - phpbb_realpath * Adding interface for filesystem service PHPBB3-13697
This commit is contained in:
@@ -42,7 +42,10 @@ class phpbb_session_check_ban_test extends phpbb_session_test_case
|
||||
parent::setUp();
|
||||
// Get session here so that config is mocked correctly
|
||||
$this->session = $this->session_factory->get_session($this->db);
|
||||
global $cache, $config, $phpbb_root_path, $phpEx;
|
||||
global $cache, $config, $phpbb_root_path, $phpEx, $phpbb_filesystem;
|
||||
|
||||
$phpbb_filesystem = new \phpbb\filesystem\filesystem();
|
||||
|
||||
$this->backup_cache = $cache;
|
||||
// Change the global cache object for this test because
|
||||
// the mock cache object does not hit the database as is needed
|
||||
|
@@ -145,7 +145,7 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
|
||||
{
|
||||
global $symfony_request, $request, $phpbb_filesystem;
|
||||
|
||||
$phpbb_filesystem = new \phpbb\filesystem();
|
||||
$phpbb_filesystem = new \phpbb\filesystem\filesystem();
|
||||
|
||||
$server['HTTP_HOST'] = 'localhost';
|
||||
$server['SERVER_NAME'] = 'localhost';
|
||||
|
Reference in New Issue
Block a user