mardi 23 décembre 2014

Codeception sendPUT type to Input::file

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