summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Preview/HEICTest.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/lib/Preview/HEICTest.php b/tests/lib/Preview/HEICTest.php
index 324d0683953..63b9038d35d 100644
--- a/tests/lib/Preview/HEICTest.php
+++ b/tests/lib/Preview/HEICTest.php
@@ -31,12 +31,18 @@ namespace Test\Preview;
class HEICTest extends Provider {
public function setUp() {
- parent::setUp();
+ if ( !in_array("HEIC", \Imagick::queryFormats("HEI*")) ) {
+ $this->markTestSkipped('ImageMagick is not HEIC aware. Skipping tests');
+ } else {
+ parent::setUp();
+
+ $fileName = 'testimage.heic';
+ $this->imgPath = $this->prepareTestFile($fileName, \OC::$SERVERROOT . '/tests/data/' . $fileName);
+ $this->width = 1680;
+ $this->height = 1050;
+ $this->provider = new \OC\Preview\HEIC;
+ }
- $fileName = 'testimage.heic';
- $this->imgPath = $this->prepareTestFile($fileName, \OC::$SERVERROOT . '/tests/data/' . $fileName);
- $this->width = 1680;
- $this->height = 1050;
- $this->provider = new \OC\Preview\HEIC;
}
+
} \ No newline at end of file