aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-08-08 15:22:05 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-07-09 09:21:51 +0200
commita55c83b77168e77fd4d0101b8c58741f442b2d39 (patch)
tree8933ead0f1e11028b1fc878b157ec31c3b62e6d2 /tests/console
parent487fea8cfffe872e888ebcc3e1f5538b72bcaec1 (diff)
downloadforums-a55c83b77168e77fd4d0101b8c58741f442b2d39.tar
forums-a55c83b77168e77fd4d0101b8c58741f442b2d39.tar.gz
forums-a55c83b77168e77fd4d0101b8c58741f442b2d39.tar.bz2
forums-a55c83b77168e77fd4d0101b8c58741f442b2d39.tar.xz
forums-a55c83b77168e77fd4d0101b8c58741f442b2d39.zip
[ticket/12692] Add a proper extension to the fixtures
PHPBB3-12692
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'));