Added force flag to image deletion event to override trash extension

This commit is contained in:
Matthew Barbour
2019-06-27 13:34:25 -05:00
committed by Shish
parent 1bd9238b17
commit a82fb56063
3 changed files with 7 additions and 3 deletions

View File

@@ -167,7 +167,7 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit\Framework\TestCase
{
$img = Image::by_id($image_id);
if ($img) {
$ide = new ImageDeletionEvent($img);
$ide = new ImageDeletionEvent($img, true);
send_event($ide);
}
}