summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-16 12:22:27 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-16 12:22:27 +0100
commit1075914f8ab8f5f4c20ab7f0b9ce35e9a9e2ffe1 (patch)
treebe7dacb2b204d8aa8d7d6f800ffcf143456e6a96 /tests
parent997a7a26685215ab1bba8d6f64d30bb8f97b85a2 (diff)
parent09b05373edc48849dc1be43dece326aec0f9cd07 (diff)
downloadnextcloud-server-1075914f8ab8f5f4c20ab7f0b9ce35e9a9e2ffe1.tar.gz
nextcloud-server-1075914f8ab8f5f4c20ab7f0b9ce35e9a9e2ffe1.zip
Merge pull request #14883 from owncloud/imagepng_expects_resource_issue
validate resource's integrity before using it
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/image.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/image.php b/tests/lib/image.php
index e0009b9710e..0ee517100ad 100644
--- a/tests/lib/image.php
+++ b/tests/lib/image.php
@@ -144,6 +144,11 @@ class Test_Image extends \Test\TestCase {
$this->assertEquals($expected, $img->data());
}
+ public function testDataNoResource() {
+ $img = new \OC_Image();
+ $this->assertNull($img->data());
+ }
+
/**
* @depends testData
*/