From d932653a298d1a18aa121e2fd5dc7c43fb8151b6 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 4 Sep 2019 13:36:36 +0200 Subject: [PATCH] adjust test expectations Signed-off-by: Arthur Schiwon --- tests/lib/Avatar/UserAvatarTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/lib/Avatar/UserAvatarTest.php b/tests/lib/Avatar/UserAvatarTest.php index 049725c78c..ed5678e6fe 100644 --- a/tests/lib/Avatar/UserAvatarTest.php +++ b/tests/lib/Avatar/UserAvatarTest.php @@ -223,8 +223,7 @@ class UserAvatarTest extends \Test\TestCase { $this->config->expects($this->once()) ->method('getUserValue'); - // One on remove and once on setting the new avatar - $this->user->expects($this->exactly(2))->method('triggerChange'); + $this->user->expects($this->exactly(1))->method('triggerChange'); $this->avatar->set($image->data()); }