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-25 09:45:29 +0300
committerJoas Schilling <coding@schilljs.com>2020-08-25 09:47:09 +0300
commit47001521dcf8dee0681fcc9c7033caf6256497a3 (patch)
treeebd21fe5ee881cc7c370953f1d24f8c8ffa135fc /tests
parenta7ca2c7ca72fe289cd527c842797f2af637916ed (diff)
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Settings/Admin/AdminSettingsTest.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/php/Settings/Admin/AdminSettingsTest.php b/tests/php/Settings/Admin/AdminSettingsTest.php
index 8022ce3a6..95807ee2d 100644
--- a/tests/php/Settings/Admin/AdminSettingsTest.php
+++ b/tests/php/Settings/Admin/AdminSettingsTest.php
@@ -24,6 +24,7 @@ declare(strict_types=1);
namespace OCA\Talk\Tests\php\Settings\Admin;
use OCA\Talk\Config;
+use OCA\Talk\MatterbridgeManager;
use OCA\Talk\Service\CommandService;
use OCA\Talk\Settings\Admin\AdminSettings;
use OCP\ICacheFactory;
@@ -46,14 +47,16 @@ class AdminSettingsTest extends \Test\TestCase {
protected $initialState;
/** @var ICacheFactory|MockObject */
protected $cacheFactory;
- /** @var AdminSettings */
- protected $admin;
+ /** @var MatterbridgeManager|MockObject */
+ protected $matterbridgeManager;
/** @var IUserSession|MockObject */
protected $userSession;
/** @var IL10N|MockObject */
protected $l10n;
/** @var IFactory|MockObject */
protected $l10nFactory;
+ /** @var AdminSettings */
+ protected $admin;
public function setUp(): void {
parent::setUp();
@@ -63,6 +66,7 @@ class AdminSettingsTest extends \Test\TestCase {
$this->commandService = $this->createMock(CommandService::class);
$this->initialState = $this->createMock(IInitialStateService::class);
$this->cacheFactory = $this->createMock(ICacheFactory::class);
+ $this->matterbridgeManager = $this->createMock(MatterbridgeManager::class);
$this->userSession = $this->createMock(IUserSession::class);
$this->l10n = $this->createMock(IL10N::class);
$this->l10nFactory = $this->createMock(IFactory::class);
@@ -82,6 +86,7 @@ class AdminSettingsTest extends \Test\TestCase {
$this->commandService,
$this->initialState,
$this->cacheFactory,
+ $this->matterbridgeManager,
$this->userSession,
$this->l10n,
$this->l10nFactory
@@ -95,6 +100,7 @@ class AdminSettingsTest extends \Test\TestCase {
$this->commandService,
$this->initialState,
$this->cacheFactory,
+ $this->matterbridgeManager,
$this->userSession,
$this->l10n,
$this->l10nFactory,