diff options
author | Ferdinand Thiessen <rpm@fthiessen.de> | 2023-02-08 17:47:49 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-04-17 18:35:10 +0200 |
commit | dc9d8c42bbcd6e65e4d744c6ad0c3b6710bbf5df (patch) | |
tree | 8f79f8ef42895296b893d0303120b0427ca1e2e7 /tests/Core | |
parent | 698332e81db301cecb99441f6ff5505e15e32f5f (diff) | |
download | nextcloud-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 'tests/Core')
-rw-r--r-- | tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php | 1 | ||||
-rw-r--r-- | tests/Core/Command/Preview/RepairTest.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php b/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php index 1d5e2ac420d..ecb3faaa25d 100644 --- a/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php +++ b/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php @@ -75,6 +75,7 @@ class ChangeKeyStorageRootTest 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') diff --git a/tests/Core/Command/Preview/RepairTest.php b/tests/Core/Command/Preview/RepairTest.php index d235c0d0aea..090e9cc0bd0 100644 --- a/tests/Core/Command/Preview/RepairTest.php +++ b/tests/Core/Command/Preview/RepairTest.php @@ -71,6 +71,7 @@ class RepairTest 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->output->expects($this->any()) |