Friday, March 3, 2017

Is it possible to test file download in Laravel 5.4?

With Laravel 5.4, it's now easy to test file upload: https://laravel.com/docs/5.4/http-tests#testing-file-uploads

Is there a way to test file download too? Ex: I want to check if a CSV is generated on a click on a button.

I did not found anything about this. What are the best practices about file download testing in Laravel?



via rap-2-h

Advertisement