diff options
author | Joas Schilling <coding@schilljs.com> | 2020-12-09 09:07:20 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-12-09 09:07:20 +0100 |
commit | d04b7cf03d910be63fd90991dde212c93c0e9ca1 (patch) | |
tree | 26dc877e0e5f2fd1b376aa74aa7ddc83ce1260fc /tests/lib/Preview | |
parent | 6f835463589935a8a00bb8b9b6b19f0b9f6b59af (diff) | |
download | nextcloud-server-d04b7cf03d910be63fd90991dde212c93c0e9ca1.tar.gz nextcloud-server-d04b7cf03d910be63fd90991dde212c93c0e9ca1.zip |
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.php | 4 |
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()); |