diff options
author | Simon L <szaimen@e.mail.de> | 2023-04-18 11:40:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 11:40:12 +0200 |
commit | 8fe22ebf60248a959ed359aee81a6ea8366f64c7 (patch) | |
tree | 91c161163201f9dfc01428377cd4ae53eb295c85 /apps/encryption | |
parent | 5f879a705b4c74ecc7e6d39f8f97f0dea9814d16 (diff) | |
parent | dc9d8c42bbcd6e65e4d744c6ad0c3b6710bbf5df (diff) | |
download | nextcloud-server-8fe22ebf60248a959ed359aee81a6ea8366f64c7.tar.gz nextcloud-server-8fe22ebf60248a959ed359aee81a6ea8366f64c7.zip |
Merge pull request #36617 from nextcloud/update/psr-container
chore: Update PSR container to 2.0.2
Diffstat (limited to 'apps/encryption')
-rw-r--r-- | apps/encryption/tests/Crypto/EncryptAllTest.php | 5 |
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, '']); |