From 1bcd2ca8e35dca6e68e5f06506ade0a78a2beae8 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 12 Oct 2016 18:06:22 +0200 Subject: emit pre-update event for comments * notifications can be cleaned up, no polluted DB * updating comments will re-notify users or remove notifications, depending on the message Signed-off-by: Arthur Schiwon --- tests/lib/Comments/ManagerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index 9c0f791c0ca..71c918af6c7 100644 --- a/tests/lib/Comments/ManagerTest.php +++ b/tests/lib/Comments/ManagerTest.php @@ -635,11 +635,11 @@ class ManagerTest extends TestCase { public function testSendEvent() { $handler1 = $this->getMockBuilder(ICommentsEventHandler::class)->getMock(); - $handler1->expects($this->exactly(3)) + $handler1->expects($this->exactly(4)) ->method('handle'); $handler2 = $this->getMockBuilder(ICommentsEventHandler::class)->getMock(); - $handler1->expects($this->exactly(3)) + $handler1->expects($this->exactly(4)) ->method('handle'); $manager = $this->getManager(); -- cgit v1.2.3