[TESTS] Remove copied upload test files, if upload failed
This commit is contained in:
parent
aef61e4c73
commit
e2caf19b67
@ -22,8 +22,9 @@ class MediaFixtures extends Fixture
|
||||
try {
|
||||
GSFile::sanitizeAndStoreFileAsAttachment($file);
|
||||
} catch (\Jcupitt\Vips\Exception $e) {
|
||||
echo "Could not save file {$copy_filepath}";
|
||||
echo "Could not save file {$copy_filepath}\n";
|
||||
}
|
||||
@unlink($copy_filepath);
|
||||
});
|
||||
$manager->flush();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user