Closed (fixed)
Project:
SimpleTest
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
19 Mar 2008 at 04:59 UTC
Updated:
5 Apr 2008 at 00:32 UTC
Jump to comment: Most recent file
My plan is to create tests/files which will contain a set of text, image, and any other necessary files.
These files will be accessible through a function that will allow the test to specify a specific size, type, etc.
This would be useful in a number of tests, as well as tests I am currently writing.
I discussed this with chx and webchick who agree.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | simpletest_test_files.patch | 130.23 KB | boombatower |
Comments
Comment #1
webchickYep, I think this is a good idea. For example, image module, imagefield.module, upload module, and filefield module might all want to test what happens when you upload an image. Similarly, they might want to test what happens when you upload a BIG file, or a file with PHP in it, etc.
It makes sense for SimpleTest to provide some sample files like this that can be shared among all tests.
Comment #2
boombatower commentedThis patch provides function for getting a list of test files.
This patch doesn't include all the changes that will be made:
In order for this patch to work correctly you will need to remove the SimpleTest module from the system table and install it.
Comment #3
boombatower commentedAs webchick mentioned I should use the files directory since it should already have write access and the patch generates (writes) files.
Comment #4
boombatower commentedCommitted.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.