From a96e4b3b3d0c01a096a58e44c33820cee7984306 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 22 Oct 2023 01:16:53 +0200 Subject: [PATCH] fix(encryption): Fix deprecated syntax in encryption tests Signed-off-by: Ferdinand Thiessen --- apps/encryption/tests/Crypto/EncryptAllTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/encryption/tests/Crypto/EncryptAllTest.php b/apps/encryption/tests/Crypto/EncryptAllTest.php index 459f680a374ca..d4d323dbe36c8 100644 --- a/apps/encryption/tests/Crypto/EncryptAllTest.php +++ b/apps/encryption/tests/Crypto/EncryptAllTest.php @@ -73,6 +73,9 @@ class EncryptAllTest extends TestCase { /** @var \PHPUnit\Framework\MockObject\MockObject | \OCP\IL10N */ protected $l; + /** @var \PHPUnit\Framework\MockObject\MockObject | IFactory */ + protected $l10nFactory; + /** @var \PHPUnit\Framework\MockObject\MockObject | \Symfony\Component\Console\Helper\QuestionHelper */ protected $questionHelper; @@ -119,7 +122,9 @@ protected function setUp(): void { $this->userInterface = $this->getMockBuilder(UserInterface::class) ->disableOriginalConstructor()->getMock(); - /* We need format method to return a string */ + /** We need format method to return a string + * @var OutputFormatterInterface|\PHPUnit\Framework\MockObject\MockObject + */ $outputFormatter = $this->createMock(OutputFormatterInterface::class); $outputFormatter->method('isDecorated')->willReturn(false); $outputFormatter->method('format')->willReturnArgument(0);