1

I'm building a module that has a file download as part of its functionality. The data in it is dynamically populated from the use of forms.

Is there a method in DrupalWebTestCase that will allow me to download it? Or do I resort to wget?

1

The class DrupalWebTestCase has the method DrupalWebTestCase::curlExec(), which accepts an array containing the same values used by curl_setopt().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.