diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-08-24 11:50:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 11:50:37 +0200 |
commit | d9424318c094c4bd4868289c6b4ae660cc48a741 (patch) | |
tree | ebdbc84ee115c1481585074e7cf5249873502d9c /tests/php | |
parent | 261f511ae9d0bb72178e80a15a9ae3f66a847bb0 (diff) | |
parent | e35b19183ab79b82ac962cabcd762f3a130a05e3 (diff) |
Merge pull request #7743 from starypatyk/enh/noid/optimize_share_reading
Reduce number of queries required to read shares
Diffstat (limited to 'tests/php')
-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 9a79d0916..b1d5ec4df 100644 --- a/tests/php/Controller/ChatControllerTest.php +++ b/tests/php/Controller/ChatControllerTest.php @@ -37,6 +37,7 @@ use OCA\Talk\Room; use OCA\Talk\Service\AttachmentService; use OCA\Talk\Service\ParticipantService; use OCA\Talk\Service\SessionService; +use OCA\Talk\Share\RoomShareProvider; use OCP\App\IAppManager; use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataResponse; @@ -76,6 +77,8 @@ class ChatControllerTest extends TestCase { protected $guestManager; /** @var MessageParser|MockObject */ protected $messageParser; + /** @var RoomShareProvider|MockObject */ + protected $roomShareProvider; /** @var IManager|MockObject */ protected $autoCompleteManager; /** @var IUserStatusManager|MockObject */ @@ -118,6 +121,7 @@ class ChatControllerTest extends TestCase { $this->attachmentService = $this->createMock(AttachmentService::class); $this->guestManager = $this->createMock(GuestManager::class); $this->messageParser = $this->createMock(MessageParser::class); + $this->roomShareProvider = $this->createMock(RoomShareProvider::class); $this->autoCompleteManager = $this->createMock(IManager::class); $this->statusManager = $this->createMock(IUserStatusManager::class); $this->matterbridgeManager = $this->createMock(MatterbridgeManager::class); @@ -155,6 +159,7 @@ class ChatControllerTest extends TestCase { $this->attachmentService, $this->guestManager, $this->messageParser, + $this->roomShareProvider, $this->autoCompleteManager, $this->statusManager, $this->matterbridgeManager, |