We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb6c24f commit 5bf3cf9Copy full SHA for 5bf3cf9
tests/Conversions/Commands/CleanCommandTest.php
@@ -316,8 +316,8 @@
316
->toMediaCollection('collection-to-keep');
317
318
// Delete quietly to avoid deleting the related media file.
319
- $mediaToClean->model->deleteQuietly();
320
- $mediaToKeep->model->deleteQuietly();
+ $mediaToClean->model->deletePreservingMedia();
+ $mediaToKeep->model->deletePreservingMedia();
321
322
$this->artisan('media-library:clean', [
323
'--delete-orphaned' => 'true',
@@ -342,7 +342,7 @@
342
->toMediaCollection('collection1');
343
344
345
- $media->model->deleteQuietly();
+ $media->model->deletePreservingMedia();
346
347
// Without the `--delete-orphaned` flag, the orphaned media should remain.
348
$this->artisan('media-library:clean');
0 commit comments