summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-20 16:34:22 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-20 16:34:22 +0100
commitafa88729558b8dd26413ff49ada8678b1b6521c6 (patch)
tree86e6c662bef91e633816f2d72dac5115770c92ec /tests
parenta45e45df1ec357f9b390463ed74100e6c8b07fe7 (diff)
parent8f06353882877c948e15e0340615cc7d25c44b83 (diff)
downloadnextcloud-server-afa88729558b8dd26413ff49ada8678b1b6521c6.tar.gz
nextcloud-server-afa88729558b8dd26413ff49ada8678b1b6521c6.zip
Merge pull request #14857 from owncloud/preview-provider-registration-in-manager
Preview provider registration in manager
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/image.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/image.php b/tests/lib/image.php
index 0ee517100ad..a22e210947b 100644
--- a/tests/lib/image.php
+++ b/tests/lib/image.php
@@ -31,20 +31,24 @@ class Test_Image extends \Test\TestCase {
public function testConstructDestruct() {
$img = new \OC_Image(OC::$SERVERROOT.'/tests/data/testimage.png');
$this->assertInstanceOf('\OC_Image', $img);
+ $this->assertInstanceOf('\OCP\IImage', $img);
unset($img);
$imgcreate = imagecreatefromjpeg(OC::$SERVERROOT.'/tests/data/testimage.jpg');
$img = new \OC_Image($imgcreate);
$this->assertInstanceOf('\OC_Image', $img);
+ $this->assertInstanceOf('\OCP\IImage', $img);
unset($img);
$base64 = base64_encode(file_get_contents(OC::$SERVERROOT.'/tests/data/testimage.gif'));
$img = new \OC_Image($base64);
$this->assertInstanceOf('\OC_Image', $img);
+ $this->assertInstanceOf('\OCP\IImage', $img);
unset($img);
$img = new \OC_Image(null);
$this->assertInstanceOf('\OC_Image', $img);
+ $this->assertInstanceOf('\OCP\IImage', $img);
unset($img);
}