[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 {
|
try {
|
||||||
GSFile::sanitizeAndStoreFileAsAttachment($file);
|
GSFile::sanitizeAndStoreFileAsAttachment($file);
|
||||||
} catch (\Jcupitt\Vips\Exception $e) {
|
} 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();
|
$manager->flush();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user