Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-04 16:19:19 +0300
committerJoas Schilling <coding@schilljs.com>2020-07-09 12:37:49 +0300
commit429305bb8aaedac3c9176d81b58368a34e492ae1 (patch)
tree520c1b26d51e0bd5cd4c4e5f3b31ec037347384c /tests
parent78836260e467bba23bd827c6d4184a75b4208c63 (diff)
Defer sending the notifications when we interact multiple times
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Chat/ChatManagerTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/php/Chat/ChatManagerTest.php b/tests/php/Chat/ChatManagerTest.php
index f6d220fbc..73eda94aa 100644
--- a/tests/php/Chat/ChatManagerTest.php
+++ b/tests/php/Chat/ChatManagerTest.php
@@ -34,6 +34,7 @@ use OCP\Comments\IComment;
use OCP\Comments\ICommentsManager;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IUser;
+use OCP\Notification\IManager as INotificationManager;
use PHPUnit\Framework\MockObject\MockObject;
use Test\TestCase;
@@ -43,6 +44,8 @@ class ChatManagerTest extends TestCase {
protected $commentsManager;
/** @var IEventDispatcher|MockObject */
protected $dispatcher;
+ /** @var INotificationManager|MockObject */
+ protected $notificationManager;
/** @var Notifier|MockObject */
protected $notifier;
/** @var ITimeFactory|MockObject */
@@ -55,12 +58,14 @@ class ChatManagerTest extends TestCase {
$this->commentsManager = $this->createMock(CommentsManager::class);
$this->dispatcher = $this->createMock(IEventDispatcher::class);
+ $this->notificationManager = $this->createMock(INotificationManager::class);
$this->notifier = $this->createMock(Notifier::class);
$this->timeFactory = $this->createMock(ITimeFactory::class);
$this->chatManager = new ChatManager(
$this->commentsManager,
$this->dispatcher,
+ $this->notificationManager,
$this->notifier,
$this->timeFactory
);