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/Keys/StorageTest.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/Keys/StorageTest.php')
-rw-r--r-- | tests/lib/Encryption/Keys/StorageTest.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/lib/Encryption/Keys/StorageTest.php b/tests/lib/Encryption/Keys/StorageTest.php index d1c0257cc6e..a47edb3fdd6 100644 --- a/tests/lib/Encryption/Keys/StorageTest.php +++ b/tests/lib/Encryption/Keys/StorageTest.php @@ -77,7 +77,7 @@ class StorageTest extends TestCase { } public function testSetFileKey() { - $this->config->method('getSystemValue') + $this->config->method('getSystemValueString') ->with('version') ->willReturn('20.0.0.2'); $this->util->expects($this->any()) @@ -103,7 +103,7 @@ class StorageTest extends TestCase { } public function testSetFileOld() { - $this->config->method('getSystemValue') + $this->config->method('getSystemValueString') ->with('version') ->willReturn('20.0.0.0'); $this->util->expects($this->any()) @@ -145,7 +145,7 @@ class StorageTest extends TestCase { * @param string $expectedKeyContent */ public function testGetFileKey($path, $strippedPartialName, $originalKeyExists, $expectedKeyContent) { - $this->config->method('getSystemValue') + $this->config->method('getSystemValueString') ->with('version') ->willReturn('20.0.0.2'); $this->util->expects($this->any()) @@ -201,7 +201,7 @@ class StorageTest extends TestCase { } public function testSetFileKeySystemWide() { - $this->config->method('getSystemValue') + $this->config->method('getSystemValueString') ->with('version') ->willReturn('20.0.0.2'); @@ -233,7 +233,7 @@ class StorageTest extends TestCase { } public function testGetFileKeySystemWide() { - $this->config->method('getSystemValue') + $this->config->method('getSystemValueString') ->with('version') ->willReturn('20.0.0.2'); @@ -261,7 +261,7 @@ class StorageTest extends TestCase { } public function testSetSystemUserKey() { - $this->config->method('getSystemValue') + $this->config->method('getSystemValueString') ->with('version') ->willReturn('20.0.0.2'); @@ -281,7 +281,7 @@ class StorageTest extends TestCase { } public function testSetUserKey() { - $this->config->method('getSystemValue') + $this->config->method('getSystemValueString') ->with('version') ->willReturn('20.0.0.2'); @@ -301,7 +301,7 @@ class StorageTest extends TestCase { } public function testGetSystemUserKey() { - $this->config->method('getSystemValue') + $this->config->method('getSystemValueString') ->with('version') ->willReturn('20.0.0.2'); @@ -324,7 +324,7 @@ class StorageTest extends TestCase { } public function testGetUserKey() { - $this->config->method('getSystemValue') + $this->config->method('getSystemValueString') ->with('version') ->willReturn('20.0.0.2'); |