diff options
Diffstat (limited to 'tests/lib/Preview/HEICTest.php')
-rw-r--r-- | tests/lib/Preview/HEICTest.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/lib/Preview/HEICTest.php b/tests/lib/Preview/HEICTest.php new file mode 100644 index 00000000000..def113fbf08 --- /dev/null +++ b/tests/lib/Preview/HEICTest.php @@ -0,0 +1,33 @@ +<?php + +/** + * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +namespace Test\Preview; + +use OC\Preview\HEIC; + +/** + * Class BitmapTest + * + * @group DB + * + * @package Test\Preview + */ +class HEICTest extends Provider { + protected function setUp(): void { + 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 HEIC; + } + } +} |