I'm trying to emulate ajax style uploading of a file in my test. Is it possible to use sendPUT to send a file and return the response? The controller receives the value via Input::file() -- I cannot seem to access what sendPUT sends via Input::file.
$I->sendPUT('/upload_image', array('file' => 'files.jpg'));
Aucun commentaire:
Enregistrer un commentaire