Hi, is it possible to "fake" a file upload in a test? I want to test a ColdBox handler that processes an uploaded file. It does a <cffile action="upload"> directly in the handler. I know one option is to refactor the code under test to optionally receive a file via argument instead of expecting it to be uploaded from a browser. But I wondered if there was a way for testbox to fake the file upload? I think this would be a neat feature.
Maybe the "execute" method in baseTestCase.cfc could accept a path to a file to mock up as a file upload.