Skip to content

Commit fbaa772

Browse files
committed
test: test gd and imagick drivers in OptionsTest
1 parent 6f593e9 commit fbaa772

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/Feature/OptionsTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@
99
beforeEach(function () {
1010
Cache::flush();
1111
Storage::fake(config()->string('image-transform-url.cache.disk'));
12-
});
12+
})->with([
13+
function () {
14+
config()->set('image.driver', \Intervention\Image\Drivers\Gd\Driver::class);
15+
return 'gd';
16+
},
17+
function () {
18+
config()->set('image.driver', \Intervention\Image\Drivers\Imagick\Driver::class);
19+
return 'imagick';
20+
}
21+
]);
1322

1423
it('can process the height option', function () {
1524
/** @var TestCase $this */

0 commit comments

Comments
 (0)