testing uploads with Pest
Hi, does someone have a test example for file uploads with Pest?, I can't find any resource
5 Replies
try
->fillForm(['fileuploadname.0' => UploadedFile::fake()])
I have it like this, now I want to get the uploaded file name after the upload to confirm is uploaded to the server
as i said, you need .0
Ok, I'll try
Does this change for an action? I get an error when I try and run this (I am testing a CreateAction from a Manange page)
I am using
use Illuminate\Http\UploadedFile;