Browse Source

Fix unit tests

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/4010/head
Joas Schilling 5 years ago
parent
commit
47001521dc
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 10
      tests/php/Settings/Admin/AdminSettingsTest.php

10
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,

Loading…
Cancel
Save