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-09-23 15:38:49 +0300
committerJoas Schilling <coding@schilljs.com>2020-09-24 12:13:46 +0300
commiteea37cf12e65304535e06507e363c3102ba1e9ab (patch)
treecf58158d1937b7b2dc1d5baecd7d7dbe27c41ccc /tests
parent9a7ff2471c07343456e436f2032c51721a240735 (diff)
Set the user status when a mobile client polls for messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Controller/ChatControllerTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/php/Controller/ChatControllerTest.php b/tests/php/Controller/ChatControllerTest.php
index 9b6892c04..1143546b1 100644
--- a/tests/php/Controller/ChatControllerTest.php
+++ b/tests/php/Controller/ChatControllerTest.php
@@ -39,6 +39,7 @@ use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Collaboration\AutoComplete\IManager;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Comments\IComment;
+use OCP\EventDispatcher\IEventDispatcher;
use OCP\IL10N;
use OCP\IRequest;
use OCP\IUser;
@@ -72,6 +73,8 @@ class ChatControllerTest extends TestCase {
protected $searchPlugin;
/** @var ISearchResult|MockObject */
protected $searchResult;
+ /** @var IEventDispatcher|MockObject */
+ protected $eventDispatcher;
/** @var ITimeFactory|MockObject */
protected $timeFactory;
/** @var IL10N|MockObject */
@@ -100,6 +103,7 @@ class ChatControllerTest extends TestCase {
$this->statusManager = $this->createMock(IUserStatusManager::class);
$this->searchPlugin = $this->createMock(SearchPlugin::class);
$this->searchResult = $this->createMock(ISearchResult::class);
+ $this->eventDispatcher = $this->createMock(IEventDispatcher::class);
$this->timeFactory = $this->createMock(ITimeFactory::class);
$this->l = $this->createMock(IL10N::class);
@@ -130,6 +134,7 @@ class ChatControllerTest extends TestCase {
$this->statusManager,
$this->searchPlugin,
$this->searchResult,
+ $this->eventDispatcher,
$this->timeFactory,
$this->l
);