Skip to content

Commit 31f0fa0

Browse files
authored
fix: Skip HEICTest when imagick returns null due to unsupported codec
1 parent fb9ba3f commit 31f0fa0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/lib/Preview/Provider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ private function getPreview($provider) {
145145
? $provider->getThumbnail($file, $this->maxWidth, $this->maxHeight, $this->scalingUp, $this->rootView)
146146
: $provider->getThumbnail($file, $this->maxWidth, $this->maxHeight, $this->scalingUp);
147147

148-
if (get_class($this) === BitmapTest::class && $preview === null) {
149-
$this->markTestSkipped('An error occured while operating with Imagick.');
148+
if (in_array(get_class($this), [BitmapTest::class, HEICTest::class]) && $preview === null) {
149+
$this->markTestSkipped('An error occurred while operating with Imagick.');
150150
}
151151

152152
$this->assertNotEquals(false, $preview);

0 commit comments

Comments
 (0)