Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbardelmeijer committed Oct 24, 2023
1 parent fb6c24f commit 5bf3cf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Conversions/Commands/CleanCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@
->toMediaCollection('collection-to-keep');

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

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

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

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

0 comments on commit 5bf3cf9

Please sign in to comment.