BUG Fix regression from #4396 in test fixtures

This commit is contained in:
Damian Mooyman 2015-10-29 17:36:38 +13:00
parent aada7a7334
commit daa86d3a4c

View File

@ -192,6 +192,11 @@ class FixtureBlueprint {
if($data && array_key_exists('LastEdited', $data)) {
$this->overrideField($obj, 'LastEdited', $data['LastEdited'], $fixtures);
}
// Ensure Folder objects exist physically, as otherwise future File fixtures can't detect them
if($obj instanceof Folder) {
Filesystem::makeFolder($obj->getFullPath());
}
} catch(Exception $e) {
Config::inst()->update('DataObject', 'validation_enabled', $validationenabled);
throw $e;