diff --git a/tests/lib/Avatar/UserAvatarTest.php b/tests/lib/Avatar/UserAvatarTest.php index 061866bedb0f2..2ce9266cf4d9a 100644 --- a/tests/lib/Avatar/UserAvatarTest.php +++ b/tests/lib/Avatar/UserAvatarTest.php @@ -223,8 +223,7 @@ public function testSetAvatar() { $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()); }