-- Drupal and Web Development

Notice: this post was last updated 3 years 45 weeks ago so it might be outdated. Please be cautious before implementing any of suggestions herein.

Snippet of code to test image uploading in simpletests

I can't get this in my head, so here it is: how to test that a module can upload images. Add this in your Drupal Simpletest:

= current($this->drupalGetTestFiles('image'));