summaryrefslogtreecommitdiffstats
path: root/tests/lib/avatar.php
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-18 22:58:33 +0200
committerkondou <kondou@ts.unde.re>2013-08-25 21:06:01 +0200
commit960262bbb469f8418ac590c5e4d789568d7c9a7e (patch)
tree6901b84b53a52635453f0fe988f5431a7341edce /tests/lib/avatar.php
parent0a4febf1eba98366d70331512b02aa9e515a782d (diff)
downloadnextcloud-server-960262bbb469f8418ac590c5e4d789568d7c9a7e.tar.gz
nextcloud-server-960262bbb469f8418ac590c5e4d789568d7c9a7e.zip
Fix testDefaultAvatar
Diffstat (limited to 'tests/lib/avatar.php')
-rw-r--r--tests/lib/avatar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/avatar.php b/tests/lib/avatar.php
index 3320ec07e0c..0e1aa3d9f62 100644
--- a/tests/lib/avatar.php
+++ b/tests/lib/avatar.php
@@ -53,6 +53,6 @@ class Test_Avatar extends PHPUnit_Framework_TestCase {
public function testDefaultAvatar() {
$img = new \OC_Image(OC::$SERVERROOT.'/core/img/defaultavatar.png');
$img->resize(128);
- $this->assertEquals($img->data(), \OC_Avatar::getDefaultAvatar(128)->data());
+ $this->assertEquals($img->data(), \OC_Avatar::getDefaultAvatar(\OC_User::getUser(), 128)->data());
}
}