aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2022-12-04 21:36:10 +0100
committerJ0WI <J0WI@users.noreply.github.com>2022-12-05 14:30:58 +0100
commit71e490090f52bc9b12f7b07f002846518326be38 (patch)
treea147ce857b2131cc53e82854e518d69145a35bff /apps/encryption/tests
parente36e92bacefeac0cf28888b3e528ab97cbc2ed9f (diff)
downloadnextcloud-server-71e490090f52bc9b12f7b07f002846518326be38.tar.gz
nextcloud-server-71e490090f52bc9b12f7b07f002846518326be38.zip
Replace getSystemValue in encryption app
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'apps/encryption/tests')
-rw-r--r--apps/encryption/tests/Crypto/CryptTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/encryption/tests/Crypto/CryptTest.php b/apps/encryption/tests/Crypto/CryptTest.php
index ef4e46085a4..08d0bba2668 100644
--- a/apps/encryption/tests/Crypto/CryptTest.php
+++ b/apps/encryption/tests/Crypto/CryptTest.php
@@ -111,7 +111,7 @@ class CryptTest extends TestCase {
*/
public function testGenerateHeader($keyFormat, $expected) {
$this->config->expects($this->once())
- ->method('getSystemValue')
+ ->method('getSystemValueString')
->with($this->equalTo('cipher'), $this->equalTo('AES-256-CTR'))
->willReturn('AES-128-CFB');
@@ -147,7 +147,7 @@ class CryptTest extends TestCase {
public function testGetCipherWithInvalidCipher() {
$this->config->expects($this->once())
- ->method('getSystemValue')
+ ->method('getSystemValueString')
->with($this->equalTo('cipher'), $this->equalTo('AES-256-CTR'))
->willReturn('Not-Existing-Cipher');
$this->logger
@@ -165,7 +165,7 @@ class CryptTest extends TestCase {
*/
public function testGetCipher($configValue, $expected) {
$this->config->expects($this->once())
- ->method('getSystemValue')
+ ->method('getSystemValueString')
->with($this->equalTo('cipher'), $this->equalTo('AES-256-CTR'))
->willReturn($configValue);
@@ -208,7 +208,7 @@ class CryptTest extends TestCase {
* @dataProvider dataTestSplitMetaData
*/
public function testSplitMetaData($data, $expected) {
- $this->config->method('getSystemValue')
+ $this->config->method('getSystemValueBool')
->with('encryption_skip_signature_check', false)
->willReturn(true);
$result = self::invokePrivate($this->crypt, 'splitMetaData', [$data, 'AES-256-CFB']);
@@ -235,7 +235,7 @@ class CryptTest extends TestCase {
* @dataProvider dataTestHasSignature
*/
public function testHasSignature($data, $expected) {
- $this->config->method('getSystemValue')
+ $this->config->method('getSystemValueBool')
->with('encryption_skip_signature_check', false)
->willReturn(true);
$this->assertSame($expected,