mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #5310 from rubencm/ticket/15738
[ticket/15738] Remove code related with safe_mode
This commit is contained in:
@@ -420,7 +420,7 @@ class phpbb_filespec_test extends phpbb_test_case
|
||||
/**
|
||||
* @dataProvider data_move_file_copy
|
||||
*/
|
||||
public function test_move_file_copy($tmp_name, $move_success, $safe_mode_on, $expected_error)
|
||||
public function test_move_file_copy($tmp_name, $move_success, $open_basedir_on, $expected_error)
|
||||
{
|
||||
// Initialise a blank filespec object for use with trivial methods
|
||||
$upload_ary = array(
|
||||
@@ -436,7 +436,7 @@ class phpbb_filespec_test extends phpbb_test_case
|
||||
$php_ini->expects($this->any())
|
||||
->method('getBool')
|
||||
->with($this->anything())
|
||||
->willReturn($safe_mode_on);
|
||||
->willReturn($open_basedir_on);
|
||||
$upload = new phpbb_mock_fileupload();
|
||||
$upload->max_filesize = self::UPLOAD_MAX_FILESIZE;
|
||||
$filespec = new \phpbb\files\filespec($this->filesystem, $this->language, $php_ini, new \FastImageSize\FastImagesize, '', $this->mimetype_guesser);
|
||||
|
Reference in New Issue
Block a user