diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-08 13:57:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 13:57:38 +0200 |
commit | bae3ba3b25550d4e08ba0b0ced3473a9dc42a3de (patch) | |
tree | 04b8874116db1cb9e877d3819bd0c150aa970273 /tests | |
parent | 7971ba5cc66201830e5b4b141d2478efa2257c75 (diff) | |
parent | b1b43aa7bc3c4d5ffe4973cf12644c1e60305530 (diff) | |
download | nextcloud-server-bae3ba3b25550d4e08ba0b0ced3473a9dc42a3de.tar.gz nextcloud-server-bae3ba3b25550d4e08ba0b0ced3473a9dc42a3de.zip |
Merge pull request #11671 from nextcloud/refactor/rename-admin-security-section
Rename admin security section
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Settings/Admin/SecurityTest.php (renamed from tests/lib/Settings/Admin/EncryptionTest.php) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Settings/Admin/EncryptionTest.php b/tests/lib/Settings/Admin/SecurityTest.php index 9be2a3f46d9..a7c56f697b0 100644 --- a/tests/lib/Settings/Admin/EncryptionTest.php +++ b/tests/lib/Settings/Admin/SecurityTest.php @@ -24,13 +24,13 @@ namespace Test\Settings\Admin; use OC\Encryption\Manager; -use OC\Settings\Admin\Encryption; +use OC\Settings\Admin\Security; use OCP\AppFramework\Http\TemplateResponse; use OCP\IUserManager; use Test\TestCase; -class EncryptionTest extends TestCase { - /** @var Encryption */ +class SecurityTest extends TestCase { + /** @var Security */ private $admin; /** @var Manager */ private $manager; @@ -42,7 +42,7 @@ class EncryptionTest extends TestCase { $this->manager = $this->getMockBuilder('\OC\Encryption\Manager')->disableOriginalConstructor()->getMock(); $this->userManager = $this->getMockBuilder(IUserManager::class)->getMock(); - $this->admin = new Encryption( + $this->admin = new Security( $this->manager, $this->userManager ); @@ -81,7 +81,7 @@ class EncryptionTest extends TestCase { ->willReturn(['entry']); $expected = new TemplateResponse( 'settings', - 'settings/admin/encryption', + 'settings/admin/security', [ 'encryptionEnabled' => $enabled, 'encryptionReady' => $enabled, @@ -116,7 +116,7 @@ class EncryptionTest extends TestCase { ->willReturn(['entry', 'entry']); $expected = new TemplateResponse( 'settings', - 'settings/admin/encryption', + 'settings/admin/security', [ 'encryptionEnabled' => $enabled, 'encryptionReady' => $enabled, |