diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-23 15:38:49 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-24 12:13:46 +0300 |
commit | eea37cf12e65304535e06507e363c3102ba1e9ab (patch) | |
tree | cf58158d1937b7b2dc1d5baecd7d7dbe27c41ccc /tests | |
parent | 9a7ff2471c07343456e436f2032c51721a240735 (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.php | 5 |
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 ); |