summaryrefslogtreecommitdiffstats
path: root/apps/encryption
diff options
context:
space:
mode:
authorFerdinand Thiessen <rpm@fthiessen.de>2023-02-08 17:47:49 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2023-04-17 18:35:10 +0200
commitdc9d8c42bbcd6e65e4d744c6ad0c3b6710bbf5df (patch)
tree8f79f8ef42895296b893d0303120b0427ca1e2e7 /apps/encryption
parent698332e81db301cecb99441f6ff5505e15e32f5f (diff)
downloadnextcloud-server-dc9d8c42bbcd6e65e4d744c6ad0c3b6710bbf5df.tar.gz
nextcloud-server-dc9d8c42bbcd6e65e4d744c6ad0c3b6710bbf5df.zip
fix: Adjust console formatter code to match with Symfony type hints
Symfony has added type hints on the `OutputFormatterInterface`, so we must adjust our type hints to match with Symfony. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Diffstat (limited to 'apps/encryption')
-rw-r--r--apps/encryption/tests/Crypto/EncryptAllTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/encryption/tests/Crypto/EncryptAllTest.php b/apps/encryption/tests/Crypto/EncryptAllTest.php
index b99e9144be8..459f680a374 100644
--- a/apps/encryption/tests/Crypto/EncryptAllTest.php
+++ b/apps/encryption/tests/Crypto/EncryptAllTest.php
@@ -121,6 +121,7 @@ class EncryptAllTest extends TestCase {
/* We need format method to return a string */
$outputFormatter = $this->createMock(OutputFormatterInterface::class);
+ $outputFormatter->method('isDecorated')->willReturn(false);
$outputFormatter->method('format')->willReturnArgument(0);
$this->outputInterface->expects($this->any())->method('getFormatter')
@@ -346,9 +347,11 @@ class EncryptAllTest extends TestCase {
['/user1/files/foo/subfile'],
);
+ $outputFormatter = $this->createMock(OutputFormatterInterface::class);
+ $outputFormatter->method('isDecorated')->willReturn(false);
$this->outputInterface->expects($this->any())
->method('getFormatter')
- ->willReturn($this->createMock(OutputFormatterInterface::class));
+ ->willReturn($outputFormatter);
$progressBar = new ProgressBar($this->outputInterface);
$this->invokePrivate($encryptAll, 'encryptUsersFiles', ['user1', $progressBar, '']);