Skip to content

Commit 5bf3cf9

Browse files
committed
Fix tests
1 parent fb6c24f commit 5bf3cf9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Conversions/Commands/CleanCommandTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@
316316
->toMediaCollection('collection-to-keep');
317317

318318
// Delete quietly to avoid deleting the related media file.
319-
$mediaToClean->model->deleteQuietly();
320-
$mediaToKeep->model->deleteQuietly();
319+
$mediaToClean->model->deletePreservingMedia();
320+
$mediaToKeep->model->deletePreservingMedia();
321321

322322
$this->artisan('media-library:clean', [
323323
'--delete-orphaned' => 'true',
@@ -342,7 +342,7 @@
342342
->toMediaCollection('collection1');
343343

344344
// Delete quietly to avoid deleting the related media file.
345-
$media->model->deleteQuietly();
345+
$media->model->deletePreservingMedia();
346346

347347
// Without the `--delete-orphaned` flag, the orphaned media should remain.
348348
$this->artisan('media-library:clean');

0 commit comments

Comments
 (0)