From 54e750ba7845d0333cdb0fdccdb54f1432b2c161 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 11 Mar 2016 13:44:35 +0100 Subject: dont die when we cant save the resized avatar, log instead --- tests/lib/avatartest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/lib/avatartest.php b/tests/lib/avatartest.php index e7d78311085..b2b69ac1a6c 100644 --- a/tests/lib/avatartest.php +++ b/tests/lib/avatartest.php @@ -27,7 +27,7 @@ class AvatarTest extends \Test\TestCase { $l = $this->getMock('\OCP\IL10N'); $l->method('t')->will($this->returnArgument(0)); $this->user = $this->getMockBuilder('\OC\User\User')->disableOriginalConstructor()->getMock(); - $this->avatar = new \OC\Avatar($this->folder, $l, $this->user); + $this->avatar = new \OC\Avatar($this->folder, $l, $this->user, $this->getMock('\OCP\ILogger')); } public function testGetNoAvatar() { -- cgit v1.2.3