diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-04-20 16:52:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 16:52:38 +0200 |
commit | b294edad804f40618a96116845615831302d0357 (patch) | |
tree | 71023e0f6d2185d44a4a62200e5613efa8aee089 /tests/lib/Encryption | |
parent | 8d5165e8dc40289b5d523523c4140f780b2fe293 (diff) | |
parent | 590c202797e6f5018635e45cdb2ed79ecd1c9865 (diff) | |
download | nextcloud-server-b294edad804f40618a96116845615831302d0357.tar.gz nextcloud-server-b294edad804f40618a96116845615831302d0357.zip |
Merge branch 'master' into enh/type-iconfig-getter-calls
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Diffstat (limited to 'tests/lib/Encryption')
-rw-r--r-- | tests/lib/Encryption/DecryptAllTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Encryption/DecryptAllTest.php b/tests/lib/Encryption/DecryptAllTest.php index f33f88eb214..69f78f435cf 100644 --- a/tests/lib/Encryption/DecryptAllTest.php +++ b/tests/lib/Encryption/DecryptAllTest.php @@ -77,12 +77,15 @@ class DecryptAllTest extends TestCase { ->disableOriginalConstructor()->getMock(); $this->outputInterface = $this->getMockBuilder(OutputInterface::class) ->disableOriginalConstructor()->getMock(); + $this->outputInterface->expects($this->any())->method('isDecorated') + ->willReturn(false); $this->userInterface = $this->getMockBuilder(UserInterface::class) ->disableOriginalConstructor()->getMock(); /* We need format method to return a string */ $outputFormatter = $this->createMock(OutputFormatterInterface::class); $outputFormatter->method('format')->willReturn('foo'); + $outputFormatter->method('isDecorated')->willReturn(false); $this->outputInterface->expects($this->any())->method('getFormatter') ->willReturn($outputFormatter); @@ -304,6 +307,7 @@ class DecryptAllTest extends TestCase { /* We need format method to return a string */ $outputFormatter = $this->createMock(OutputFormatterInterface::class); + $outputFormatter->method('isDecorated')->willReturn(false); $outputFormatter->method('format')->willReturn('foo'); $output = $this->createMock(OutputInterface::class); |