diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2025-06-13 09:10:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-13 09:10:09 +0200 |
commit | 7be047a5c08d4401899d38c9a7d7ebdb6d8e78b2 (patch) | |
tree | 70348117aaae719bd278f4476afe6563ee16aa14 /tests/Core/Command/Encryption/DecryptAllTest.php | |
parent | 1f0086ff6b49c31facd7cb13921725142b47409f (diff) | |
parent | 3561937816578a699008c010829142a01580e7bf (diff) | |
download | nextcloud-server-master.tar.gz nextcloud-server-master.zip |
Diffstat (limited to 'tests/Core/Command/Encryption/DecryptAllTest.php')
-rw-r--r-- | tests/Core/Command/Encryption/DecryptAllTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Core/Command/Encryption/DecryptAllTest.php b/tests/Core/Command/Encryption/DecryptAllTest.php index 45b331efb59..ea22c101845 100644 --- a/tests/Core/Command/Encryption/DecryptAllTest.php +++ b/tests/Core/Command/Encryption/DecryptAllTest.php @@ -79,7 +79,7 @@ class DecryptAllTest extends TestCase { ]; $this->config->expects($this->exactly(2)) ->method('setSystemValue') - ->willReturnCallback(function () use (&$calls) { + ->willReturnCallback(function () use (&$calls): void { $expected = array_shift($calls); $this->assertEquals($expected, func_get_args()); }); @@ -137,7 +137,7 @@ class DecryptAllTest extends TestCase { ]; $this->config->expects($this->exactly(2)) ->method('setAppValue') - ->willReturnCallback(function () use (&$calls) { + ->willReturnCallback(function () use (&$calls): void { $expected = array_shift($calls); $this->assertEquals($expected, func_get_args()); }); @@ -188,7 +188,7 @@ class DecryptAllTest extends TestCase { ]; $this->config->expects($this->exactly(2)) ->method('setAppValue') - ->willReturnCallback(function () use (&$calls) { + ->willReturnCallback(function () use (&$calls): void { $expected = array_shift($calls); $this->assertEquals($expected, func_get_args()); }); @@ -208,7 +208,7 @@ class DecryptAllTest extends TestCase { $this->decryptAll->expects($this->once()) ->method('decryptAll') ->with($this->consoleInput, $this->consoleOutput, 'user1') - ->willReturnCallback(function () { + ->willReturnCallback(function (): void { throw new \Exception(); }); |