aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubencm <rubencm@gmail.com>2019-02-09 12:16:47 +0000
committerrubencm <rubencm@gmail.com>2019-02-12 21:19:47 +0000
commit96491a70e8b61ba5700c78dd7b20fe9ca9a3b665 (patch)
tree9bda97390da15639353ca4b914941615b5631104 /tests/console
parentMerge pull request #5487 from 3D-I/ticket/15918 (diff)
downloadphpbb-96491a70e8b61ba5700c78dd7b20fe9ca9a3b665.tar.gz
phpbb-96491a70e8b61ba5700c78dd7b20fe9ca9a3b665.tar.bz2
phpbb-96491a70e8b61ba5700c78dd7b20fe9ca9a3b665.zip
[ticket/15965] Fix hardcoded directory
PHPBB3-15965
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/thumbnail_test.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/console/thumbnail_test.php b/tests/console/thumbnail_test.php
index d5fbfa0fed..e425d998a2 100644
--- a/tests/console/thumbnail_test.php
+++ b/tests/console/thumbnail_test.php
@@ -46,6 +46,7 @@ class phpbb_console_command_thumbnail_test extends phpbb_database_test_case
$config = $this->config = new \phpbb\config\config(array(
'img_min_thumb_filesize' => 2,
'img_max_thumb_width' => 2,
+ 'upload_path' => 'files',
));
$this->db = $this->db = $this->new_dbal();
@@ -63,8 +64,8 @@ class phpbb_console_command_thumbnail_test extends phpbb_database_test_case
)));
$this->application = new Application();
- $this->application->add(new generate($this->user, $this->db, $this->cache, $this->phpbb_root_path, $this->phpEx));
- $this->application->add(new delete($this->user, $this->db, $this->phpbb_root_path));
+ $this->application->add(new generate($config, $this->user, $this->db, $this->cache, $this->phpbb_root_path, $this->phpEx));
+ $this->application->add(new delete($config, $this->user, $this->db, $this->phpbb_root_path));
$this->application->add(new recreate($this->user));
$phpbb_filesystem = new \phpbb\filesystem\filesystem();