summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests/ImageManagerTest.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-06-05 16:59:05 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-06 13:15:52 +0200
commit5b0ce806a3679b34ae3a6f8e6ae32a0b513a4ca9 (patch)
treebdda614353703033cfa26bfd9b8687b2579be3e0 /apps/theming/tests/ImageManagerTest.php
parentd132527aa9c4baad344b11adef3a6f4a46cde3ab (diff)
downloadnextcloud-server-5b0ce806a3679b34ae3a6f8e6ae32a0b513a4ca9.tar.gz
nextcloud-server-5b0ce806a3679b34ae3a6f8e6ae32a0b513a4ca9.zip
Minor fixes and cleanup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/tests/ImageManagerTest.php')
-rw-r--r--apps/theming/tests/ImageManagerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/tests/ImageManagerTest.php b/apps/theming/tests/ImageManagerTest.php
index 6912395268e..6bfa5b330a6 100644
--- a/apps/theming/tests/ImageManagerTest.php
+++ b/apps/theming/tests/ImageManagerTest.php
@@ -66,10 +66,10 @@ class ImageManagerTest extends TestCase {
$this->markTestSkipped('Imagemagick is required for dynamic icon generation.');
}
$checkImagick = new \Imagick();
- if (count($checkImagick->queryFormats('SVG')) < 1) {
+ if (empty($checkImagick->queryFormats('SVG'))) {
$this->markTestSkipped('No SVG provider present.');
}
- if (count($checkImagick->queryFormats('PNG')) < 1) {
+ if (empty($checkImagick->queryFormats('PNG'))) {
$this->markTestSkipped('No PNG provider present.');
}
}