|
@@ 36-41 (lines=6) @@
|
| 33 |
|
|
| 34 |
|
// Create a test folders for each of the fixture references |
| 35 |
|
$folderIDs = $this->allFixtureIDs('Folder'); |
| 36 |
|
foreach ($folderIDs as $folderID) { |
| 37 |
|
$folder = DataObject::get_by_id('Folder', $folderID); |
| 38 |
|
if (!file_exists(BASE_PATH."/$folder->Filename")) { |
| 39 |
|
mkdir(BASE_PATH."/$folder->Filename"); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
// Copy test images for each of the fixture references |
| 44 |
|
$imageIDs = $this->allFixtureIDs('Image'); |
|
@@ 83-88 (lines=6) @@
|
| 80 |
|
{ |
| 81 |
|
// Remove the test images that we've created |
| 82 |
|
$imageIDs = $this->allFixtureIDs('Image'); |
| 83 |
|
foreach ($imageIDs as $imageID) { |
| 84 |
|
$image = DataObject::get_by_id('Image', $imageID); |
| 85 |
|
if ($image && file_exists(BASE_PATH."/$image->Filename")) { |
| 86 |
|
unlink(BASE_PATH."/$image->Filename"); |
| 87 |
|
} |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
// Remove the test files that we've created |
| 91 |
|
$fileIDs = $this->allFixtureIDs('File'); |
|
@@ 92-97 (lines=6) @@
|
| 89 |
|
|
| 90 |
|
// Remove the test files that we've created |
| 91 |
|
$fileIDs = $this->allFixtureIDs('File'); |
| 92 |
|
foreach ($fileIDs as $fileID) { |
| 93 |
|
$file = DataObject::get_by_id('File', $fileID); |
| 94 |
|
if ($file && file_exists(BASE_PATH."/$file->Filename")) { |
| 95 |
|
unlink(BASE_PATH."/$file->Filename"); |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
// Remove the test folders that we've created |
| 100 |
|
$folderIDs = $this->allFixtureIDs('Folder'); |