From 0b79e85cc82873b126b59d6081ac552f08be1335 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 26 Apr 2010 23:30:03 +0000 Subject: [PATCH] MINOR: Fixed FileTest execution if the assets/ directory doesn't exist. (from r88353) (from r98086) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@103521 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/filesystem/FileTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/filesystem/FileTest.php b/tests/filesystem/FileTest.php index 9da2db290..5c090dba6 100644 --- a/tests/filesystem/FileTest.php +++ b/tests/filesystem/FileTest.php @@ -98,6 +98,8 @@ class FileTest extends SapphireTest { function setUp() { parent::setUp(); + + if(!file_exists(ASSETS_PATH)) mkdir(ASSETS_PATH); /* Create a test folders for each of the fixture references */ $fileIDs = $this->allFixtureIDs('Folder');