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:
authorJoas Schilling <coding@schilljs.com>2020-05-12 15:18:30 +0300
committerJoas Schilling <coding@schilljs.com>2020-05-12 15:18:30 +0300
commit76294947900acb3c28cca9d3c7cebc3aa1711293 (patch)
tree050592a732f0ef44e101496c9a960b3ac74c7ce2 /tests/php/Signaling/BackendNotifierTest.php
parent40fa7c6f21ecf204de44320752d4adbf2ff817cb (diff)
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/php/Signaling/BackendNotifierTest.php')
-rw-r--r--tests/php/Signaling/BackendNotifierTest.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/php/Signaling/BackendNotifierTest.php b/tests/php/Signaling/BackendNotifierTest.php
index 37676eabf..fda09243b 100644
--- a/tests/php/Signaling/BackendNotifierTest.php
+++ b/tests/php/Signaling/BackendNotifierTest.php
@@ -77,6 +77,8 @@ class BackendNotifierTest extends \Test\TestCase {
private $secureRandom;
/** @var ITimeFactory|MockObject */
private $timeFactory;
+ /** @var \OCA\Talk\Signaling\Manager|MockObject */
+ private $signalingManager;
/** @var CustomBackendNotifier */
private $controller;
@@ -116,6 +118,11 @@ class BackendNotifierTest extends \Test\TestCase {
],
]));
+ $this->signalingManager = $this->createMock(\OCA\Talk\Signaling\Manager::class);
+ $this->signalingManager->expects($this->any())
+ ->method('getSignalingServerForConversation')
+ ->willReturn(['server' => $this->baseUrl]);
+
$this->config = new Config($config, $this->secureRandom, $groupManager, $this->timeFactory);
$this->recreateBackendNotifier();
@@ -158,7 +165,8 @@ class BackendNotifierTest extends \Test\TestCase {
$this->config,
$this->createMock(ILogger::class),
$this->createMock(IClientService::class),
- $this->secureRandom
+ $this->secureRandom,
+ $this->signalingManager
);
}