Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-12-09 11:07:20 +0300
committerJoas Schilling <coding@schilljs.com>2020-12-09 11:07:20 +0300
commitd04b7cf03d910be63fd90991dde212c93c0e9ca1 (patch)
tree26dc877e0e5f2fd1b376aa74aa7ddc83ce1260fc /tests/lib/Preview
parent6f835463589935a8a00bb8b9b6b19f0b9f6b59af (diff)
Skip the test if Imagick is misconfigured
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Preview')
-rw-r--r--tests/lib/Preview/Provider.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Preview/Provider.php b/tests/lib/Preview/Provider.php
index 761f6b7f83f..90287116512 100644
--- a/tests/lib/Preview/Provider.php
+++ b/tests/lib/Preview/Provider.php
@@ -141,6 +141,10 @@ abstract class Provider extends \Test\TestCase {
$file = new File(\OC::$server->getRootFolder(), $this->rootView, $this->imgPath);
$preview = $provider->getThumbnail($file, $this->maxWidth, $this->maxHeight, $this->scalingUp);
+ if (get_class($this) === BitmapTest::class && $preview === null) {
+ $this->markTestSkipped('An error occured while operating with Imagick.');
+ }
+
$this->assertNotEquals(false, $preview);
$this->assertEquals(true, $preview->valid());