summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-06-19 15:07:49 +0200
committerOlivier Paroz <github@oparoz.com>2015-06-19 15:07:49 +0200
commitba3b6f9be40bc3a916e8b163be62fe7530836cee (patch)
treec6ff8e6bc05f78d630cf3760972dd16472fe0057 /tests
parent64f0fd08891ac5018fce8002246438b3e31159f6 (diff)
downloadnextcloud-server-ba3b6f9be40bc3a916e8b163be62fe7530836cee.tar.gz
nextcloud-server-ba3b6f9be40bc3a916e8b163be62fe7530836cee.zip
Remove unneeded returns from private cropping methods
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/preview.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/lib/preview.php b/tests/lib/preview.php
index 70b7218474c..ca7fa6987d6 100644
--- a/tests/lib/preview.php
+++ b/tests/lib/preview.php
@@ -210,9 +210,9 @@ class Preview extends TestCase {
}
/**
- * Tests if the media type icon fits into the asked dimensions
+ * Tests if unsupported previews return an empty object
*/
- public function testIsMimePreviewTheRightSize() {
+ public function testUnsupportedPreviewsReturnEmptyObject() {
$width = 400;
$height = 200;
@@ -226,8 +226,7 @@ class Preview extends TestCase {
$preview->getPreview();
$image = $preview->getPreview();
- $this->assertSame($width, $image->width());
- $this->assertSame($height, $image->height());
+ $this->assertSame(false, $image->valid());
}
/**