From 71e490090f52bc9b12f7b07f002846518326be38 Mon Sep 17 00:00:00 2001 From: J0WI Date: Sun, 4 Dec 2022 21:36:10 +0100 Subject: Replace getSystemValue in encryption app Signed-off-by: J0WI --- apps/encryption/tests/Crypto/CryptTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/encryption/tests') 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, -- cgit v1.2.3