diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-30 13:24:10 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-30 14:03:28 +0100 |
commit | dc1979903ef4c88ad0ae06b40386e2fa339837c2 (patch) | |
tree | 56d647a12c5362df77c21a5c92e1380e406602f9 /apps/settings/tests | |
parent | 9ed106f69acaf419414dccfcfd7efa6de22aa45a (diff) | |
download | nextcloud-server-dc1979903ef4c88ad0ae06b40386e2fa339837c2.tar.gz nextcloud-server-dc1979903ef4c88ad0ae06b40386e2fa339837c2.zip |
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.php | 2 | ||||
-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 ); |