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
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-08-03 10:00:17 +0300
committerJoas Schilling <coding@schilljs.com>2020-08-03 10:00:17 +0300
commit456842121d3ad5e543993ed2c120e80a56a66b6a (patch)
treed106937f1a9e71dd16f7128b218d042e201b8538 /tests
parentd69419279535cd5e2de623ccd0c4babc020bc895 (diff)
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Signaling/BackendNotifierTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/php/Signaling/BackendNotifierTest.php b/tests/php/Signaling/BackendNotifierTest.php
index cec80cfb6..22a30c4ee 100644
--- a/tests/php/Signaling/BackendNotifierTest.php
+++ b/tests/php/Signaling/BackendNotifierTest.php
@@ -38,6 +38,7 @@ use OCP\Http\Client\IClientService;
use OCP\IGroupManager;
use OCP\IL10N;
use OCP\ILogger;
+use OCP\IURLGenerator;
use OCP\IUser;
use OCP\IUserManager;
use OCP\Security\IHasher;
@@ -76,6 +77,8 @@ class BackendNotifierTest extends \Test\TestCase {
private $timeFactory;
/** @var \OCA\Talk\Signaling\Manager|MockObject */
private $signalingManager;
+ /** @var IURLGenerator|MockObject */
+ private $urlGenerator;
/** @var CustomBackendNotifier */
private $controller;
@@ -102,6 +105,7 @@ class BackendNotifierTest extends \Test\TestCase {
$this->userId = 'testUser';
$this->secureRandom = \OC::$server->getSecureRandom();
$this->timeFactory = $this->createMock(ITimeFactory::class);
+ $this->urlGenerator = $this->createMock(IURLGenerator::class);
$groupManager = $this->createMock(IGroupManager::class);
$config = \OC::$server->getConfig();
$this->signalingSecret = 'the-signaling-secret';
@@ -154,7 +158,8 @@ class BackendNotifierTest extends \Test\TestCase {
$this->createMock(ILogger::class),
$this->createMock(IClientService::class),
$this->secureRandom,
- $this->signalingManager
+ $this->signalingManager,
+ $this->urlGenerator
);
}