Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-01-30 15:24:10 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-01-30 16:03:28 +0300
commitdc1979903ef4c88ad0ae06b40386e2fa339837c2 (patch)
tree56d647a12c5362df77c21a5c92e1380e406602f9 /apps/settings/tests
parent9ed106f69acaf419414dccfcfd7efa6de22aa45a (diff)
Move password settings
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/settings/tests')
-rw-r--r--apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php2
-rw-r--r--apps/settings/tests/Settings/Personal/Security/PasswordTest.php (renamed from apps/settings/tests/Settings/Personal/SecurityTest.php)12
2 files changed, 5 insertions, 9 deletions
diff --git a/apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php b/apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php
index 6837fc101c4..6fd7cf22efe 100644
--- a/apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php
+++ b/apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php
@@ -29,7 +29,7 @@ namespace OCA\Settings\Tests\Settings\Personal\Security;
use OC\Authentication\Token\DefaultToken;
use OC\Authentication\Token\IProvider as IAuthTokenProvider;
-use OCA\Settings\Personal\Security;
+use OCA\Settings\Personal\Password;
use OCA\Settings\Personal\Security\Authtokens;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IInitialStateService;
diff --git a/apps/settings/tests/Settings/Personal/SecurityTest.php b/apps/settings/tests/Settings/Personal/Security/PasswordTest.php
index 103bd9dae92..160e4ebf844 100644
--- a/apps/settings/tests/Settings/Personal/SecurityTest.php
+++ b/apps/settings/tests/Settings/Personal/Security/PasswordTest.php
@@ -1,5 +1,4 @@
<?php
-
declare(strict_types=1);
/**
@@ -28,17 +27,14 @@ declare(strict_types=1);
namespace OCA\Settings\Tests\Settings\Personal;
-use OC\Authentication\TwoFactorAuth\ProviderLoader;
-use OCA\Settings\Personal\Security;
+use OCA\Settings\Personal\Security\Password;
use OCP\AppFramework\Http\TemplateResponse;
-use OCP\IConfig;
use OCP\IUser;
use OCP\IUserManager;
-use OCP\IUserSession;
use PHPUnit\Framework\MockObject\MockObject;
use Test\TestCase;
-class SecurityTest extends TestCase {
+class PasswordTest extends TestCase {
/** @var IUserManager|MockObject */
private $userManager;
@@ -46,7 +42,7 @@ class SecurityTest extends TestCase {
/** @var string */
private $uid;
- /** @var Security */
+ /** @var Password */
private $section;
protected function setUp(): void {
@@ -55,7 +51,7 @@ class SecurityTest extends TestCase {
$this->userManager = $this->createMock(IUserManager::class);
$this->uid = 'test123';
- $this->section = new Security(
+ $this->section = new Password(
$this->userManager,
$this->uid
);