diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-12 11:42:25 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-06-13 12:52:58 +0200 |
commit | a39e7815e1caad62c870fd61f0651a52a316639b (patch) | |
tree | 9d6fc6e50070522994d03603cb1bdeecdd6b66c0 /tests/php | |
parent | f063637cada063f8c3c285c05a0bf18c63d71529 (diff) |
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/php')
-rw-r--r-- | tests/php/Chat/ChatManagerTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/php/Chat/ChatManagerTest.php b/tests/php/Chat/ChatManagerTest.php index e0e79869f..1aee9f09d 100644 --- a/tests/php/Chat/ChatManagerTest.php +++ b/tests/php/Chat/ChatManagerTest.php @@ -33,6 +33,7 @@ use OCA\Talk\Participant; use OCA\Talk\Room; use OCA\Talk\Service\AttachmentService; use OCA\Talk\Service\ParticipantService; +use OCA\Talk\Service\PollService; use OCA\Talk\Share\RoomShareProvider; use OCP\AppFramework\Utility\ITimeFactory; use OCP\Comments\IComment; @@ -64,6 +65,8 @@ class ChatManagerTest extends TestCase { protected $shareProvider; /** @var ParticipantService|MockObject */ protected $participantService; + /** @var PollService|MockObject */ + protected $pollService; /** @var Notifier|MockObject */ protected $notifier; /** @var ITimeFactory|MockObject */ @@ -81,6 +84,7 @@ class ChatManagerTest extends TestCase { $this->shareManager = $this->createMock(IManager::class); $this->shareProvider = $this->createMock(RoomShareProvider::class); $this->participantService = $this->createMock(ParticipantService::class); + $this->pollService = $this->createMock(PollService::class); $this->notifier = $this->createMock(Notifier::class); $this->timeFactory = $this->createMock(ITimeFactory::class); $this->attachmentService = $this->createMock(AttachmentService::class); @@ -94,6 +98,7 @@ class ChatManagerTest extends TestCase { $this->shareManager, $this->shareProvider, $this->participantService, + $this->pollService, $this->notifier, $cacheFactory, $this->timeFactory, @@ -118,6 +123,7 @@ class ChatManagerTest extends TestCase { $this->shareManager, $this->shareProvider, $this->participantService, + $this->pollService, $this->notifier, $cacheFactory, $this->timeFactory, @@ -135,6 +141,7 @@ class ChatManagerTest extends TestCase { $this->shareManager, $this->shareProvider, $this->participantService, + $this->pollService, $this->notifier, $cacheFactory, $this->timeFactory, |