diff options
author | Joas Schilling <coding@schilljs.com> | 2021-10-08 13:49:57 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-03-13 11:16:03 +0100 |
commit | e4e6d45c7ab609eb4b804aa88dcf284a94d11f24 (patch) | |
tree | fee17f0d408f48404d8fa9771e98e15658049c9b /tests | |
parent | 010ba5c107c34b256dc2eef9670a3411f31cbc59 (diff) |
Suggest group mentions as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/Chat/AutoComplete/SearchPluginTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/php/Chat/AutoComplete/SearchPluginTest.php b/tests/php/Chat/AutoComplete/SearchPluginTest.php index 0b281e53f..6f7b90b7b 100644 --- a/tests/php/Chat/AutoComplete/SearchPluginTest.php +++ b/tests/php/Chat/AutoComplete/SearchPluginTest.php @@ -31,6 +31,7 @@ use OCA\Talk\Room; use OCA\Talk\Service\ParticipantService; use OCA\Talk\TalkSession; use OCP\Collaboration\Collaborators\ISearchResult; +use OCP\IGroupManager; use OCP\IL10N; use OCP\IUser; use OCP\IUserManager; @@ -42,6 +43,8 @@ class SearchPluginTest extends TestCase { protected $userManager; /** @var GuestManager|MockObject */ protected $guestManager; + /** @var IGroupManager|MockObject */ + protected $groupManager; /** @var TalkSession|MockObject */ protected $talkSession; /** @var ParticipantService|MockObject */ @@ -57,6 +60,7 @@ class SearchPluginTest extends TestCase { parent::setUp(); $this->userManager = $this->createMock(IUserManager::class); + $this->groupManager = $this->createMock(IGroupManager::class); $this->guestManager = $this->createMock(GuestManager::class); $this->talkSession = $this->createMock(TalkSession::class); $this->participantService = $this->createMock(ParticipantService::class); @@ -78,6 +82,7 @@ class SearchPluginTest extends TestCase { if (empty($methods)) { return new SearchPlugin( $this->userManager, + $this->groupManager, $this->guestManager, $this->talkSession, $this->participantService, @@ -90,6 +95,7 @@ class SearchPluginTest extends TestCase { return $this->getMockBuilder(SearchPlugin::class) ->setConstructorArgs([ $this->userManager, + $this->groupManager, $this->guestManager, $this->talkSession, $this->participantService, |