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
diff options
context:
space:
mode:
-rw-r--r--lib/Chat/ChatManager.php1
-rw-r--r--tests/php/Chat/ChatManagerTest.php7
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/Chat/ChatManager.php b/lib/Chat/ChatManager.php
index fe63f0c31..1db3709de 100644
--- a/lib/Chat/ChatManager.php
+++ b/lib/Chat/ChatManager.php
@@ -87,6 +87,7 @@ class ChatManager {
private IDBConnection $connection;
private INotificationManager $notificationManager;
private IManager $shareManager;
+ private Manager $manager;
private RoomShareProvider $shareProvider;
private ParticipantService $participantService;
private PollService $pollService;
diff --git a/tests/php/Chat/ChatManagerTest.php b/tests/php/Chat/ChatManagerTest.php
index 1aee9f09d..dd21fe44e 100644
--- a/tests/php/Chat/ChatManagerTest.php
+++ b/tests/php/Chat/ChatManagerTest.php
@@ -27,6 +27,7 @@ namespace OCA\Talk\Tests\php\Chat;
use OCA\Talk\Chat\ChatManager;
use OCA\Talk\Chat\CommentsManager;
use OCA\Talk\Chat\Notifier;
+use OCA\Talk\Manager;
use OCA\Talk\Model\Attendee;
use OCA\Talk\Model\AttendeeMapper;
use OCA\Talk\Participant;
@@ -61,6 +62,8 @@ class ChatManagerTest extends TestCase {
protected $notificationManager;
/** @var IManager|MockObject */
protected $shareManager;
+ /** @var Manager|MockObject */
+ protected $manager;
/** @var RoomShareProvider|MockObject */
protected $shareProvider;
/** @var ParticipantService|MockObject */
@@ -82,6 +85,7 @@ class ChatManagerTest extends TestCase {
$this->dispatcher = $this->createMock(IEventDispatcher::class);
$this->notificationManager = $this->createMock(INotificationManager::class);
$this->shareManager = $this->createMock(IManager::class);
+ $this->manager = $this->createMock(Manager::class);
$this->shareProvider = $this->createMock(RoomShareProvider::class);
$this->participantService = $this->createMock(ParticipantService::class);
$this->pollService = $this->createMock(PollService::class);
@@ -96,6 +100,7 @@ class ChatManagerTest extends TestCase {
\OC::$server->getDatabaseConnection(),
$this->notificationManager,
$this->shareManager,
+ $this->manager,
$this->shareProvider,
$this->participantService,
$this->pollService,
@@ -121,6 +126,7 @@ class ChatManagerTest extends TestCase {
\OC::$server->getDatabaseConnection(),
$this->notificationManager,
$this->shareManager,
+ $this->manager,
$this->shareProvider,
$this->participantService,
$this->pollService,
@@ -139,6 +145,7 @@ class ChatManagerTest extends TestCase {
\OC::$server->getDatabaseConnection(),
$this->notificationManager,
$this->shareManager,
+ $this->manager,
$this->shareProvider,
$this->participantService,
$this->pollService,