aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGreta Doci <gretadoci@gmail.com>2019-09-12 15:40:21 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-09-15 12:04:28 +0200
commit68ef242a0a480fff0ab3ee8e03f7e0fc7c88453f (patch)
treeaa6f8da2b5ff2ff8f9998f567e24d9777f9afb44 /tests
parent4ff7551574a45f27bcbed6f86fb34de63c0e23b9 (diff)
downloadnextcloud-server-68ef242a0a480fff0ab3ee8e03f7e0fc7c88453f.tar.gz
nextcloud-server-68ef242a0a480fff0ab3ee8e03f7e0fc7c88453f.zip
Fixed the SecurityTest error
Signed-off-by: Greta Doci <gretadoci@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Settings/Personal/SecurityTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/Settings/Personal/SecurityTest.php b/tests/lib/Settings/Personal/SecurityTest.php
index 9944f1fc590..012c1d87a1f 100644
--- a/tests/lib/Settings/Personal/SecurityTest.php
+++ b/tests/lib/Settings/Personal/SecurityTest.php
@@ -25,6 +25,8 @@ declare(strict_types=1);
namespace Test\Settings\Personal;
use OC\Authentication\TwoFactorAuth\ProviderLoader;
+use OCP\IInitialStateService;
+use OCP\InitialStateService;
use OC\Settings\Personal\Security;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
@@ -36,6 +38,9 @@ use Test\TestCase;
class SecurityTest extends TestCase {
+ /** @var InitialStateService|MockObject */
+ private $initialStateService;
+
/** @var IUserManager|MockObject */
private $userManager;
@@ -57,6 +62,7 @@ class SecurityTest extends TestCase {
public function setUp() {
parent::setUp();
+ $this->initialStateService = $this->createMock(IInitialStateService::class);
$this->userManager = $this->createMock(IUserManager::class);
$this->providerLoader = $this->createMock(ProviderLoader::class);
$this->userSession = $this->createMock(IUserSession::class);
@@ -64,6 +70,7 @@ class SecurityTest extends TestCase {
$this->uid = 'test123';
$this->section = new Security(
+ $this->initialStateService,
$this->userManager,
$this->providerLoader,
$this->userSession,