aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-07-08 01:24:27 +0100
committerFyorl <gaelreth@gmail.com>2012-07-09 14:08:20 +0100
commitaf8020b3885266a963583b465be58b557c928368 (patch)
tree8d79202f1d6a4f2dd1bf0132aa75459444e2151a /tests
parentb65f08dd95de07405ed7f19fd980ca7d09925406 (diff)
downloadforums-af8020b3885266a963583b465be58b557c928368.tar
forums-af8020b3885266a963583b465be58b557c928368.tar.gz
forums-af8020b3885266a963583b465be58b557c928368.tar.bz2
forums-af8020b3885266a963583b465be58b557c928368.tar.xz
forums-af8020b3885266a963583b465be58b557c928368.zip
[ticket/10941] Fixed a failing test
Since the is_image change, the filespec class no longer trusts the browser's reported mimetype and instead checks the file itself. Thus pretending a text file had the mimetype of an image will no longer fail, the file will simply not be treated as an image. PHPBB3-10941
Diffstat (limited to 'tests')
-rw-r--r--tests/uploads/filespec_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/uploads/filespec_test.php b/tests/uploads/filespec_test.php
index e91819142a..fe642ea24c 100644
--- a/tests/uploads/filespec_test.php
+++ b/tests/uploads/filespec_test.php
@@ -237,7 +237,7 @@ class phpbb_filespec_test extends phpbb_test_case
return array(
array('gif_copy', 'gif_moved', 'image/gif', 'gif', false, true),
array('non_existant', 'still_non_existant', 'text/plain', 'txt', 'GENERAL_UPLOAD_ERROR', false),
- array('txt_copy', 'txt_as_img', 'image/jpg', 'txt', 'UNABLE_GET_IMAGE_SIZE', true),
+ array('txt_copy', 'txt_as_img', 'image/jpg', 'txt', false, true),
array('txt_copy_2', 'txt_moved', 'text/plain', 'txt', false, true),
array('jpg_copy', 'jpg_moved', 'image/png', 'jpg', false, true),
array('png_copy', 'png_moved', 'image/png', 'jpg', 'IMAGE_FILETYPE_MISMATCH', true),