burnbright/silverstripe-shop — pull request #251 by madmatt (2014-05-09 00:44:43+00:00)
Title: FIX: Create assets/ directory in ProductImageTest if it doesn't exist

This patch will create the assets/ directory before it attempts to copy files into it, and delete it (only if it created the directory in the first place) after running each test.

This prevents CI bugs where the assets/ directory doesn't exist, but won't solve anything if the assets/ directory can't be created (due to parent directory permissions).