aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console
diff options
context:
space:
mode:
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/fixtures/png.png (renamed from tests/console/fixtures/png)bin129 -> 129 bytes
-rw-r--r--tests/console/fixtures/txt.txt (renamed from tests/console/fixtures/txt)0
-rw-r--r--tests/console/thumbnail_test.php10
3 files changed, 6 insertions, 4 deletions
diff --git a/tests/console/fixtures/png b/tests/console/fixtures/png.png
index c143a26a06..c143a26a06 100644
--- a/tests/console/fixtures/png
+++ b/tests/console/fixtures/png.png
Binary files differ
diff --git a/tests/console/fixtures/txt b/tests/console/fixtures/txt.txt
index a78c858f5c..a78c858f5c 100644
--- a/tests/console/fixtures/txt
+++ b/tests/console/fixtures/txt.txt
diff --git a/tests/console/thumbnail_test.php b/tests/console/thumbnail_test.php
index 11d2717f73..6af8e7e174 100644
--- a/tests/console/thumbnail_test.php
+++ b/tests/console/thumbnail_test.php
@@ -11,6 +11,8 @@
*
*/
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
+
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use phpbb\console\command\thumbnail\generate;
@@ -63,10 +65,10 @@ class phpbb_console_command_thumbnail_test extends phpbb_database_test_case
public function test_thumbnails()
{
- copy(dirname(__FILE__) . '/fixtures/png', $this->phpbb_root_path . 'files/test_png_1');
- copy(dirname(__FILE__) . '/fixtures/png', $this->phpbb_root_path . 'files/test_png_2');
- copy(dirname(__FILE__) . '/fixtures/png', $this->phpbb_root_path . 'files/thumb_test_png_2');
- copy(dirname(__FILE__) . '/fixtures/txt', $this->phpbb_root_path . 'files/test_txt');
+ copy(dirname(__FILE__) . '/fixtures/png.png', $this->phpbb_root_path . 'files/test_png_1');
+ copy(dirname(__FILE__) . '/fixtures/png.png', $this->phpbb_root_path . 'files/test_png_2');
+ copy(dirname(__FILE__) . '/fixtures/png.png', $this->phpbb_root_path . 'files/thumb_test_png_2');
+ copy(dirname(__FILE__) . '/fixtures/txt.txt', $this->phpbb_root_path . 'files/test_txt');
$command_tester = $this->get_command_tester('thumbnail:generate');
$exit_status = $command_tester->execute(array('command' => 'thumbnail:generate'));