views:

194

answers:

0

I can't seem to perform functional test on file uploads through the sfTestFunctional's post() method. My action handling the HTTP post is able to get all parameters except the file upload field.

Looking at Symfony 1.4's source codes, i think the sfBrowserBase only handle file upload through the click() method (specifically, the doClickElement()) . Is that the only way to 'upload' a file through functional test?

BTW, i'm asking this as i do not have any HTML form that represents the data to submit, its part of a REST API. If the functional test must 'click()', then i just have to create dummy html page with the needed html form elements.