diff options
author | Robin Appelman <robin@icewind.nl> | 2023-04-21 13:48:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 13:48:12 +0200 |
commit | ccab101df85e8c5878361e7a9fa19480a3d54a96 (patch) | |
tree | f7183efe2acc724de4528ee79df0434c56d5e4fa /tests/lib/Encryption/ManagerTest.php | |
parent | c08026a92ab020ac327aa7b8d379fc26cfe447bd (diff) | |
parent | b294edad804f40618a96116845615831302d0357 (diff) | |
download | nextcloud-server-ccab101df85e8c5878361e7a9fa19480a3d54a96.tar.gz nextcloud-server-ccab101df85e8c5878361e7a9fa19480a3d54a96.zip |
Merge pull request #37596 from nextcloud/enh/type-iconfig-getter-calls
Use typed version of IConfig::getSystemValue as much as possible
Diffstat (limited to 'tests/lib/Encryption/ManagerTest.php')
-rw-r--r-- | tests/lib/Encryption/ManagerTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Encryption/ManagerTest.php b/tests/lib/Encryption/ManagerTest.php index 79d2c216080..4e354ad518c 100644 --- a/tests/lib/Encryption/ManagerTest.php +++ b/tests/lib/Encryption/ManagerTest.php @@ -66,7 +66,7 @@ class ManagerTest extends TestCase { } public function testManagerIsEnabled() { - $this->config->expects($this->any())->method('getSystemValue')->willReturn(true); + $this->config->expects($this->any())->method('getSystemValueBool')->willReturn(true); $this->config->expects($this->any())->method('getAppValue')->willReturn('yes'); $this->assertTrue($this->manager->isEnabled()); } @@ -199,7 +199,7 @@ class ManagerTest extends TestCase { // */ // public function testModuleRegistration() { // $config = $this->createMock(IConfig::class); -// $config->expects($this->any())->method('getSystemValue')->willReturn(true); +// $config->expects($this->any())->method('getSystemValueBool')->willReturn(true); // $em = $this->createMock(IEncryptionModule::class); // $em->expects($this->any())->method('getId')->willReturn(0); // $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0'); @@ -211,7 +211,7 @@ class ManagerTest extends TestCase { // // public function testModuleUnRegistration() { // $config = $this->createMock(IConfig::class); -// $config->expects($this->any())->method('getSystemValue')->willReturn(true); +// $config->expects($this->any())->method('getSystemValueBool')->willReturn(true); // $em = $this->createMock(IEncryptionModule::class); // $em->expects($this->any())->method('getId')->willReturn(0); // $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0'); @@ -228,7 +228,7 @@ class ManagerTest extends TestCase { // */ // public function testGetEncryptionModuleUnknown() { // $config = $this->createMock(IConfig::class); -// $config->expects($this->any())->method('getSystemValue')->willReturn(true); +// $config->expects($this->any())->method('getSystemValueBool')->willReturn(true); // $em = $this->createMock(IEncryptionModule::class); // $em->expects($this->any())->method('getId')->willReturn(0); // $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0'); @@ -240,7 +240,7 @@ class ManagerTest extends TestCase { // // public function testGetEncryptionModule() { // $config = $this->createMock(IConfig::class); -// $config->expects($this->any())->method('getSystemValue')->willReturn(true); +// $config->expects($this->any())->method('getSystemValueBool')->willReturn(true); // $em = $this->createMock(IEncryptionModule::class); // $em->expects($this->any())->method('getId')->willReturn(0); // $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0'); |