Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 8, 2023
1 parent 5ffb92d commit 1aa202c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Conversions/ImageGenerators/SvgTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
use Spatie\MediaLibrary\Conversions\ImageGenerators\Svg;

it('can convert a svg', function () {
config()->set('media-library.image_driver', 'imagick');

$imageGenerator = new Svg();

if (! $imageGenerator->requirementsAreInstalled()) {
Expand Down
2 changes: 2 additions & 0 deletions tests/Feature/FileAdder/MediaConversions/AddMediaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public function registerMediaConversions(Media $media = null): void
});

it('can create a derived version of a pdf if imagick exists', function () {
config()->set('media-library.image_driver', 'imagick');

$media = $this->testModelWithConversion
->addMedia($this->getTestFilesDirectory('test.pdf'))
->toMediaCollection('images');
Expand Down
2 changes: 2 additions & 0 deletions tests/Feature/Media/ToHtmlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
});

it('can render pdf thumbnail as an image', function () {
config()->set('media-library.image_driver', 'imagick');

$media = $this->testModelWithConversion
->addMedia($this->getTestPdf())
->toMediaCollection();
Expand Down

0 comments on commit 1aa202c

Please sign in to comment.