mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-20 07:21:30 +02:00
[ticket/10941] Added functional tests for the fileupload class
NOTE: test_form_upload() is broken. Uploading files via Symfony fails to retain $_FILES['fileupload']['type'] even if it set explicitely. This appears to be a bug in Symfony. Since the current version of filespec::is_image() relies on the mimetype, these tests will __fail__. filespec::is_image() has been fixed in https://github.com/phpbb/phpbb3/pull/833 however. PHPBB3-10941
This commit is contained in:
0
tests/functional/fixtures/files/empty.png
Normal file
0
tests/functional/fixtures/files/empty.png
Normal file
BIN
tests/functional/fixtures/files/illegal-extension.bif
Normal file
BIN
tests/functional/fixtures/files/illegal-extension.bif
Normal file
Binary file not shown.
After Width: | Height: | Size: 519 B |
BIN
tests/functional/fixtures/files/too-large.png
Normal file
BIN
tests/functional/fixtures/files/too-large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 278 KiB |
BIN
tests/functional/fixtures/files/valid.jpg
Normal file
BIN
tests/functional/fixtures/files/valid.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 554 B |
Reference in New Issue
Block a user